Mail Archives: djgpp/1996/12/13/10:27:20
A. Sinan Unur wrote:
> (just for the record) there is no such thing as the square root of
> 100-2500.
No kidding; (100 - 2500)^(1/2) is not real. Thus, as per the ANSI C
standard, the result returned by sqrt is undefined. That's why it's some
wacky number; it doesn't have to return anything reasonable. errno would
also indicate that there was a domain error, if the original poster had
been looking.
--
Erik Max Francis | max AT alcyone DOT com
Alcyone Systems | http://www.alcyone.com/max/
San Jose, California | 37 20 07 N 121 53 38 W
&tSftDotIotE | R^4: the 4th R is respect
"But since when can wounded eyes see | If we weren't who we were"
- Raw text -