Real trig functions (x=0)

Floating point special functions about a point.

boring_math.special_functions.trig0.sin0(x: float, /, n: int = 22) float

Partially factored Taylor expansion of sine about x = 0.

Note

Best if -2π <= x <= .

Parameters:
  • x – angle in radians

  • n – terms in expansion, must have 2 <= n <= 20

Returns:

Taylor series expansion of sine(x) centered at x = 0

boring_math.special_functions.trig0.cos0(x: float, /, n: int = 22) float

Partially factored Taylor expansion of cosine about x = 0.

Note

Best if -2π <= x <= .

Parameters:
  • x – angle in radians

  • n – terms in expansion, must have 2 <= n <= 20

Returns:

Taylor series expansion of cosine(x) centered at x = 0

boring_math.special_functions.trig0.tan0(x: float, /, n: int = 22) float

Tangent centered about x = 0.

Note

Best if <= x <= π.

Parameters:
  • x – angle in radians

  • n – terms in expansion, must have 2 <= n <= 20

Returns:

sin0(x)/cos0(x)