what is 0/0?
0/x = 0 but
x/0 = protein infinity, and
x/x = 1
:confused:
Printable View
what is 0/0?
0/x = 0 but
x/0 = protein infinity, and
x/x = 1
:confused:
It's undefined.
Quote:
Originally posted by HarryW
It's undefined.
isnt that what computers and calculators say when div by zero becuase the number would be infinte
Ummmm... the search function could help :)
There's been a 300 page post on this already.
This one applies. It can be thought of as either undefined or infinity.Quote:
Originally posted by markman
x/0 = protein infinity
For floating point operations. Division by 0.0 will produce INF (4.0/0.0) -INF ((-4.0)/0.0) and (0.0/0.0) NAN.
Quiet NaN's are the worst. It doesnt even tell you you just divided by 0.0f!
Z.
:D
I prefer them actually, because it saves programmer effort for a minority case that the user will obviously notice (plus if you've coded your algorithm properly you should never end up dividing by zero or epsilon).Quote:
Originally posted by Zaei
Quiet NaN's are the worst. It doesnt even tell you you just divided by 0.0f!
Z.
Value of 0/0 is Indeterminate.
Also for INF/INF is also Indertminate.
Means that value cannot be determined.
In my high school calculus course (back in the day...), the first thing the teacher asked the class was to go home and ponder 0/x, x/0, and 0/0. Everyone knew 0/x = 0, nearly everyone who had read the material knew that x/0 = +- INF, but we had a two day discussion (with the teacher just sitting back and grinning) about what 0/0 could possibly be...the answer, as vsusi said, is that it's indeterminate. So technically, 0/x = 0 and x/0 = +- INF for all x != 0
(Wish ASCII had good math symbols...I likes me some discrete math notation!)