Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!codas!peora!pesnta!phri!roy From: roy@phri.UUCP Newsgroups: comp.sources.d Subject: Re: Suggestions needed for new version of Calctool. Message-ID: <2528@phri.UUCP> Date: Tue, 9-Dec-86 22:33:02 EST Article-I.D.: phri.2528 Posted: Tue Dec 9 22:33:02 1986 Date-Received: Sun, 14-Dec-86 06:46:38 EST References: <84@yarra.OZ> Reply-To: roy@phri.UUCP (Roy Smith) Organization: Public Health Research Inst. (NY, NY) Lines: 17 Keywords: SUN desktop calculator. Summary: Bug in Calctool I think I've found a bug in calctool, as posted to the net a little while back. If you take the square root of a negative number, you get "NaN" (Not a Number; should really be NaRN :-)). On the other hand, if you try to divide by zero, you get "Error". Seems to me you should either get "NaN" or "Error" both time. What do you math types think? BTW, taking the square root of a negative number isn't easy, since there isn't and +/- key. Have to do "0 - 1 srt". This minor problem notwithstanding, I think calctool is pretty nifty and have put it in my root menu. -- Roy Smith, {allegra,cmcl2,philabs}!phri!roy System Administrator, Public Health Research Institute 455 First Avenue, New York, NY 10016 "you can't spell deoxyribonucleic without unix!"