Real trig functions

Floating point trigonometric functions about a point.

boring_math.special_functions.trigonometry.trig0.sin0(θ: float, /, n: int = epth)) 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.trigonometry.trig0.cos0(θ: float, /, n: int = epth)) 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.trigonometry.trig0.tan0(θ: float, /, n: int = epth)) 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(θ)

Floating point trigonometric functions.

boring_math.special_functions.trigonometry.trig.sin(θ: float) float

Sine for all real θ = 0.

Parameters:

θ – Angle in radians.

Returns:

Sine of angle θ.

boring_math.special_functions.trigonometry.trig.cos(θ: float) float

Cosine for all θ = 0.

Parameters:

θ – Angle in radians.

Returns:

Cosine of angle θ.

boring_math.special_functions.trigonometry.trig.tan(θ: float) float

Tangent for all real θ = 0.

Parameters:

θ – Angle in radians.

Returns:

Tangent of angle θ.