Dividing by Zero

Posts 115 of 20 · Page 1 of 2
Dividing by Zero
How can it be done?
It cannot be done, Venus.
[php]
float number;
std::cin >> number;
std::cout << number / 0 << '\n';
return 0;
[/php]

output:
1.#INF
Umm
It's esasy.
dividing any number by zero is impossible mathematically.
Code:
Let
x
--   = y      <- Multiplying both sides by "0" to isolate the x,
0   


x = y*0

x=0

wut?
Fooled yas.

in that equation, y was the variable and x was some constant. i.e consider

Code:
2
--   = y   <- Again, multiplying both sides by "0" to isolate the "x" (which is now two)
0

2 = 0

c'est impossible!
Quote Originally Posted by Czar View Post
How can it be done?
It cannot be done because Chuck Norris is busy.
Quote Originally Posted by Hassan View Post


It cannot be done because Chuck Norris is busy.
He already divided by zero nib.
Quote Originally Posted by Imported View Post


He already divided by zero nib.
Infinity is not a correct answer nib.
Our maths teacher always told us if our answer wasn't acurate(e.g. 3/7) we should leave the 3/7 instead of writing 0.4285...
Sooo since we can't give an acurate answer to 3/0, just leave it like that
Quote Originally Posted by Hell_Demon View Post
Our maths teacher always told us if our answer wasn't acurate(e.g. 3/7) we should leave the 3/7 instead of writing 0.4285...
Sooo since we can't give an acurate answer to 3/0, just leave it like that
lol I love it he's right, just leave it as a fraction and don't worry about it
Quote Originally Posted by Hell_Demon View Post
Our maths teacher always told us if our answer wasn't acurate(e.g. 3/7) we should leave the 3/7 instead of writing 0.4285...
Sooo since we can't give an acurate answer to 3/0, just leave it like that
Wonderful answer is wonderful.
Don't do this Czar ; Bad Idea.
In custom graphing, It fries your hardware ; In Life, It results in something like this.
MacGyver with his Swiss army knife will divide by 0.. he is a ninja.. :\
You could try a recursive approach...if you have an infinite amount of memory and an infinite bit-size machine. (It makes sense)
Posts 115 of 20 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?