Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.eclipse.net.uk!news.eclipse.net.uk.POSTED!not-for-mail NNTP-Posting-Date: Fri, 09 May 2014 13:06:32 -0500 From: David Hume Newsgroups: comp.misc Subject: Re: Calculator Accuracy References: <83k39w1tnl.fsf@example.com> X-No-Archive: Yes Date: Fri, 09 May 2014 19:06:32 +0100 Message-ID: <7zwqduj07r.fsf@example.com> Organization: Linux Private Site User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:k7yIMYUdPBZx9uFilOJu0iet1kw= MIME-Version: 1.0 Content-Type: text/plain Lines: 28 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 81.168.48.70 X-Trace: sv3-5wstpzN0T/s5BpCdd6IkCGczAhsM4J9VWS+orp9YD0ZIZN4wnMuxDaZKnsY+l56CBSIwy+QecT/Xhks!hKmeKQT8pAF2l8C6YtTIBkg/S4cgT0BvsrVEDXynhTKvWgS73wvAQGwuIdfYwUvncJo= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1849 Xref: csiph.com comp.misc:2728 Eric Pozharski writes: > with Hils wrote: > > *SKIP* >> R version 3.1.0: >> >> asin(acos(atan(tan(cos(sin(45*pi/180))))))*180/pi-45 >> [1] -7.105427e-15 >> >> Gnuplot 4.6: >> >> print asin(acos(atan(tan(cos(sin(45*pi/180))))))*180/pi-45 >> -7.105427357601e-15 >> >> I'm guessing a common library at work here... > > libc, maybe: > > % perl -MMath::Trig -wle ' > print rad2deg( asin acos atan tan cos sin deg2rad 45 ) - 45' > 7.105427357601e-15 > These aren't the same tests as having the calculator in degrees mode, because in these tests when the result of sine is passed to cosine it is treated as radians.