Why is the square root of -Infinity +Infinity in Java? – stackoverflow.com

I tried two different ways to find the square root in Java: Math.sqrt(Double.NEGATIVE_INFINITY); // NaN Math.pow(Double.NEGATIVE_INFINITY, 0.5); // Infinity Why doesn't the second way return the ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Why is the square root of -Infinity +Infinity in Java? – stackoverflow.com"