u/zifyoip
-
1points
zifyoip
zifyoip
Your X and Y aren't open sets in R2.
zifyoip
The second one is apparently this: https://en.wikipedia.org/wiki/Drummully_Polyp
zifyoip
I bought this world map in Toronto in 2000. Mine says "© 1996" on it.
zifyoip
Nothing useful is found in this thread so it should be deleted.
No, because the rules say DO NOT DELETE YOUR POST. They don't say "Do not delete your post, unless you think it's OK."
zifyoip
The fact that b – a > 1/n is unnecessary
Presumably this is to give a foothold for the construction of a rational number that lies between them.
zifyoip
Do you think that there are two real numbers that do not have a rational number in between?
zifyoip
It's not a class, it's a type placeholder in a generic definition.
zifyoip
Node newNode = new Node(newVal); Node tempNode = new Node(newVal);
These should be new Node<AnyType>(newVal).
zifyoip
Initialize a variable to 0 and increment it every time you output something.
zifyoip
I don't understand what you mean. The number of lines printed is a (as long as a >= 0).
zifyoip
It is not a compiler bug. It is never a compiler bug.
If your program doesn't work correctly, it is your fault, not the compiler's.
Read the documentation for the scanf function. In particular, pay careful attention to what the %s specifier means.
zifyoip
Not sure if arrays can hold reference type objects.
Of course they can.
zifyoip
char name[100];
scanf("%99s", name);
or
char *name = malloc(100);
scanf("%99s", name);
zifyoip
Okay, so? Your program has undefined behavior because you are attempting to access the value of an uninitialized variable. Undefined behavior means you have absolutely no guarantees about the behavior of any part of your program. Maybe you happen to get lucky and your program works as intended. That's a fluke.
zifyoip
Well, yes, because you are changing it right here:
result[i]->coordinate[j] += this->columns[i]->coordinate[k] * v.columns[k]->coordinate[j];
zifyoip
You have not initialized the pointer name to point to anything. And then you attempt to pass the value of name to scanf. What memory address is it that you're passing to scanf? Who knows, because you haven't initialized it to anything. Attempting to access the value of an uninitialized variable yields undefined behavior.
Turn on all warnings in your compiler, and pay attention to what they say. A good compiler may warn you about mistakes like this.
zifyoip
it's not working.
This is not a helpful description of the problem.
http://meta.stackexchange.com/questions/147616/what-do-you-mean-it-doesnt-work
zifyoip
Java does not have a standard Rational class. You will need to either write your own or use a third-party library.
zifyoip
I am not sure what you are asking.
"If the odds of event occurring is 0.15, what are the odds of event first occurring after 8 attempts? If I am not mistaken, the probability will approach 100% as more attempts are taken, correct?
No, that is not correct. The probability that the first success occurs on the nth attempt actually decreases as the value of n increases.
Do not confuse the event that the first success occurs on the nth attempt with the event that the nth attempt is successful. The event that the first success occurs on the nth attempt requires not only that the nth attempt is successful but that all n − 1 previous attempts were unsuccessful. And don't confuse either of these events with the event that there will be at least one success somewhere in the first n attempts.
zifyoip
27401901900 has 2228194497 digits. Why do you think having a two-billion-digit number would be useful?
zifyoip
A square is a two-dimensional figure.
Going up a dimension from a square probably gives you a cube. A cube is a three-dimensional figure.
A four-dimensional cube is a tesseract.
zifyoip
The gambler's fallacy is the incorrect belief that in a sequence of independent trials the probability of success on a single trial increases if previous trials have been unsuccessful.
zifyoip
Because single quotes mean a character literal, and double quotes mean a string literal. That's what single quotes and double quotes mean.
Carl Orff, O Fortuna