Sujet : Re: Angle Units For Trig Functions
De : sgk (at) *nospam* REMOVEtroutmask.apl.washington.edu (Steven G. Kargl)
Groupes : comp.lang.fortranDate : 24. Oct 2024, 06:31:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfcm31$2gts0$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
On Thu, 24 Oct 2024 05:22:53 +0000, Lawrence D'Oliveiro wrote:
On Thu, 24 Oct 2024 05:06:37 -0000 (UTC), Steven G. Kargl wrote:
For sin(x), argument reduction will give sin(0) = 0, exactly. That's one
angle.
More generally, it gives sin(x) ≃ x, for uncountably many angles.
For sind(x), argument reduction will give sind(x) = 0, exactly,
for countable many angles.
But it never gives sind(x) anywhere close to x.
Never claimed sind(x) for x near 0 was exact.
It is, however, for floatin point arithmetic,
correct to less than or equal to 0.5 ULP. Now,
got read Goldberg.
-- steve