From: 71231 DOT 104 AT compuserve DOT com (Richard Slobod) Newsgroups: comp.os.msdos.djgpp Subject: Re: sqrt() problem Date: Mon, 09 Dec 1996 15:01:55 GMT Organization: Warwick Online Lines: 18 Message-ID: <32ac23e6.8006142@news.warwick.net> 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: m252-05.warwick.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp "A. Sinan Unur" wrote: >Erik Max Francis wrote: >> >> Murray Stokely wrote: >> >> > r and m are integers (10 and 50), yet s keeps returning a huge >> > negative number (should be like 51 or something) >> >> Quick quiz: What is the square root of 100 - 2500? I'll give you a hint: >> It ain't 51. >> > >(just for the record) there is no such thing as the square root of >100-2500. Sure there is; it's (approximately) i48.9897948557 (of course, the standard C math functions don't support imaginary numbers, so they won't get this right).