Skip to main content

Module trig

Module trig 

Source
Expand description

Trigonometric functions, built on top of the cached constants π/2 and the real exp/ln primitives:

  • Circular: sin, cos, tan, sin_cos, and their inverses asin, acos, atan.

Argument reduction to the first quadrant reuses the cached π so that repeated calls at increasing precision extend the shared constant state.