Real trig functions (x=0)

Floating point trigonometric functions about a point.

boring_math.special_functions.trig0.sin0(θ: float, /, n: int = 20) float

Partially factored Taylor expansion of sine centered at x = 0.

Note

Best n to use

  • n >= 20 when -2π <= θ <=

  • n >= 15 when <= θ <= π

  • n >= 12 when -π/2 <= θ <= π/2

The default is n=20.

Parameters:
  • x – angle in radians

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

Returns:

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

boring_math.special_functions.trig0.cos0(θ: float, /, n: int = 20) float

Partially factored Taylor expansion of cosine centered at x = 0.

Note

Best n to use

  • n >= 20 when -2π <= θ <=

  • n >= 15 when <= θ <= π

  • n >= 12 when -π/2 <= θ <= π/2

The default is n=20.

Parameters:
  • x – angle in radians

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

Returns:

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

boring_math.special_functions.trig0.tan0(θ: float, /, n: int = 20) float

Tangent centered about x = 0.

Note

Best n to use

  • n >= 20 when -2π <= θ <=

  • n >= 15 when <= θ <= π

  • n >= 12 when -π/2 <= θ <= π/2

Parameters:
  • x – angle in radians

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

Returns:

sin0(θ)/cos0(θ)