diff options
author | Akila Welihinda <akilawelihinda@ucla.edu> | 2021-12-12 10:35:03 -0800 |
---|---|---|
committer | Paul Zimmermann <Paul.Zimmermann@inria.fr> | 2021-12-13 15:31:05 +0100 |
commit | 3b1402b3fc3a9ff228c2b721a67f0fef430a82fd (patch) | |
tree | 15272f2a5008bebe49af6732774c12053ef8840f /iconvdata/ibm1166.h | |
parent | 104d2005d5b7fb13a970905ca3f4a7e7e783cf1a (diff) | |
download | glibc-3b1402b3fc3a9ff228c2b721a67f0fef430a82fd.tar glibc-3b1402b3fc3a9ff228c2b721a67f0fef430a82fd.tar.gz glibc-3b1402b3fc3a9ff228c2b721a67f0fef430a82fd.tar.bz2 glibc-3b1402b3fc3a9ff228c2b721a67f0fef430a82fd.zip |
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>
Diffstat (limited to 'iconvdata/ibm1166.h')
0 files changed, 0 insertions, 0 deletions