News

from math import sin, cos, pi print(sin(pi/2)) # 1.0 print(cos(pi/2)) # 6.123233995736766e-17 The actual methods by which sin and cos are calculated are rather complicated (I’ll return to this in ...
is misleading: the approximation used for sin (x) is degree 11, not 9, and as above, the constants s2 to s5 are not just double approximations to the true Taylor coefficients. (In older versions of ...