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:Akila Welihinda <akilawelihinda@ucla.edu> Reviewed-by:
Paul Zimmermann <Paul.Zimmermann@inria.fr>
Loading
Please register or sign in to comment