in Others edited by
400 views
0 votes
0 votes
I found it by doing some calculations on Google calculator.
What I am interested in is , by word "handling" i dont want to handle error but want to produce a valid output.
So how can i implement it in my code so that even if its invalid or not defined in earlier stage but its valid overall.
 
e.g 
 
As per given image, 1st execution is "not defined" but i just want to remember that step and later when it becomes a valid arithmetic i should give an output as zero.
Its mathematically correct expression hence I wanted to do it on my computer.
Can anybody help me to do so ?

Dont be offended , its just asked under curiosity (:

( I asked on SO  but they downvoted it.. :/ May be they dontt care about curiosity or its a silly thought :p but still i aske :v )

in Others edited by
400 views

4 Comments

$\frac{1}{0}$ is undefined.

If $\frac{1}{\frac{1}{0}} = 0$ is valid, then so is $1=0$ (multiply $\frac{1}{0}$ on both sides. 0 * anything is 0)
0
0
How are you evaluating the expression? In code, try catch might help here.
0
0
0 * "anything" = 0 is not true buddy.

0* infinity is not zero.  else indeterminate forms wouldn't came to existence.
0
0

Please log in or register to answer this question.