Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.fortran Subject: Re: Angle Units For Trig Functions Date: Tue, 22 Oct 2024 20:50:27 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 22 Oct 2024 22:50:28 +0200 (CEST) Injection-Info: dont-email.me; posting-host="4ecbf1a753fc1bc9f1fe578e1ac58604"; logging-data="1738782"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zrK9oWhY6g7r3LQaa9eHJ" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:52AgJLrM9U0nD+u4OFQ9OtwUouQ= Bytes: 1649 On Tue, 22 Oct 2024 07:14:22 -0000 (UTC), Steven G. Kargl wrote: > On Tue, 22 Oct 2024 04:26:59 +0000, Lawrence D'Oliveiro wrote: > >> On Sun, 20 Oct 2024 05:35:25 -0000 (UTC), Steven G. Kargl wrote: >> >>> % gfcx -o z a.f90 && ./z 0.500000000 0.500089288 >>> >>> One of these values is exact, and one of these raises FE_INEXACT. >> >> Does it work for 29° and 31° as well? What’s so special about 30°? > > Really? This is high school trig. > > For units of degree, mathematically sin(30) = 1/2, exactly!. > sin(30+n*360) = 1/2 is also exact. What’s so special about 30°? Does that extend to 29° and 31° as well?