Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Steven G. Kargl" Newsgroups: comp.lang.fortran Subject: Re: Angle Units For Trig Functions Date: Wed, 23 Oct 2024 14:38:17 -0000 (UTC) Organization: A noiseless patient Spider Lines: 21 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 23 Oct 2024 16:38:17 +0200 (CEST) Injection-Info: dont-email.me; posting-host="aa0df79af36b71d5a575bc8cc74d8a85"; logging-data="2187675"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FU76iq4feXH07xowDgInR" User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2) Cancel-Lock: sha1:skZJoJrO02H6XZIPIEgLh1BXtpY= Bytes: 1819 On Wed, 23 Oct 2024 06:25:02 +0000, Lawrence D'Oliveiro wrote: > On Wed, 23 Oct 2024 07:59:24 +0200, R Daneel Olivaw wrote: > >> Lawrence D'Oliveiro wrote: >> >>> On Wed, 23 Oct 2024 04:06:26 -0000 (UTC), David Jones wrote: >>> >>>> Did you take a high school trigonometry class? >>> >>> You seem obsessed with that. > > So your favourite functions return an exact result for sin 30°. Do they > return an exact result for cos 30° as well? > Nope. For REAL x, COSD(x) returns an exact result for all N >= 0 that satisfies 60+N*360 < 2**23. -- steve