From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: sqrt() problem Date: Mon, 09 Dec 1996 08:16:55 -0800 Organization: Alcyone Systems Lines: 17 Message-ID: <32AC3B77.4DA07170@alcyone.com> References: <32aa47fd DOT 8683086 AT nntp DOT southeast DOT net> <32AABA23 DOT 15FC AT cs DOT com> <32ab4462 DOT 73306026 AT nntp DOT southeast DOT net> <32AB53C6 DOT 4AAAC13 AT alcyone DOT com> <32AB67CF DOT 42B5 AT cornell DOT edu> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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"