Deutsch English Français Italiano |
<vfckkt$2gojm$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu> Newsgroups: comp.lang.fortran Subject: Re: Angle Units For Trig Functions Date: Thu, 24 Oct 2024 05:06:37 -0000 (UTC) Organization: A noiseless patient Spider Lines: 31 Message-ID: <vfckkt$2gojm$1@dont-email.me> References: <vf1ug0$8qpm$1@dont-email.me> <vf24qs$9mgr$1@dont-email.me> <vf79ii$1b5gt$1@dont-email.me> <pdXRO.88119$7OO5.22734@fx43.iad> <vf9hli$1nad3$4@dont-email.me> <vf9so2$1sngk$1@dont-email.me> <vf9upp$1sv6o$2@dont-email.me> <vfa3bs$31imq$1@paganini.bofh.team> <vfa4ru$1tujv$2@dont-email.me> <vfb1op$22ocr$1@dont-email.me> <vfbpd3$293e7$1@dont-email.me> <QVeSO.83134$UZH4.13101@fx44.iad> <vfbvv2$2a8la$1@dont-email.me> <vfcanb$2beml$1@dont-email.me> <vfcjga$2gc7o$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 24 Oct 2024 07:06:38 +0200 (CEST) Injection-Info: dont-email.me; posting-host="2fcf8133e626c62d4ab5737bdf70a9bd"; logging-data="2646646"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bCwzbG8F1ViMe5d/icU1M" User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2) Cancel-Lock: sha1:qb2o6QWnxlnF8i0kkGC6suTj/IA= Bytes: 2310 On Thu, 24 Oct 2024 04:47:06 +0000, Lawrence D'Oliveiro wrote: > On Thu, 24 Oct 2024 02:17:15 -0000 (UTC), Steven G. Kargl wrote: > >> One of these values is wrong. > > Only if you assume the input numbers were somehow “exact” or “perfect” to > begin with. > > There’s an old principle in computing: “Garbage In, Garbage Out”. People discussing Fortran normally use floating point math when computing sin(x) or any other function of a "real" quantity. > >> You seem to be missing that argument reduction for sind(x) >> is much easier than argument reduction for sin(x). > > But that only worked for one angle, and for nothing else. ROFL. For sin(x), argument reduction will give sin(0) = 0, exactly. That's one angle. For sind(x), argument reduction will give sind(x) = 0, exactly, for countable many angles. -- steve