Skip to content
Commit 3b1402b3 authored by Akila Welihinda's avatar Akila Welihinda Committed by Paul Zimmermann
Browse files

sysdeps: Simplify sin Taylor Series calculation



The macro TAYLOR_SIN adds the term `-0.5*da*a^2 + da` in hopes
of regaining some precision as a function of da. However the
comment says we add the term `-0.5*da*a^2 + 0.5*da` which is
different. This fix updates the comment to reflect the
code and also simplifies the calculation by replacing `a` with `x`
because they always have the same value.

Signed-off-by: default avatarAkila Welihinda <akilawelihinda@ucla.edu>
Reviewed-by: default avatarPaul Zimmermann <Paul.Zimmermann@inria.fr>
parent 104d2005
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment