Sujet : Re: Angle Units For Trig Functions
De : sgk (at) *nospam* REMOVEtroutmask.apl.washington.edu (Steven G. Kargl)
Groupes : comp.lang.fortranDate : 22. Oct 2024, 08:14:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vf7jce$1cp1g$1@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
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.
-- steve