AngouriMath
SinAndCos(PeterO.Numbers.EDecimal,PeterO.Numbers.EContext)
Method (no overloads)
Summary
The sine and the cosine of x together, each to the precision of
context : the argument reduced to [-pi, pi] and then halved
until it is below a twentieth, two Taylor series of a dozen terms there, and the
double-angle formulas back up.
until it is below a twentieth, two Taylor series of a dozen terms there, and the
double-angle formulas back up.
Remarks
and its cost was most of a
twentieth and fifteen terms are enough, and a doubling is a multiplication. Each
doubling multiplies the absolute error by about four, so the work is done with
eight digits more than asked for and rounded at the end.
half the digits wherever the sine is small, and
digits at a hundred. https://github.com/asc-community/AngouriMath/issues/1338
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online