Complex trig functions

Complex valued special functions.

boring_math.special_functions.ctrig.sin(z: complex, /, n: int = 22) complex

Partially factored Taylor expansion of sine about z = 0.

Parameters:
  • z – independent variable

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

Returns:

Value of sine(z).

boring_math.special_functions.ctrig.cos(z: complex, /, n: int = 22) complex

Partially factored Taylor expansion of cosine about z = 0.

Parameters:
  • z – independent variable

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

Returns:

Value of cosine(z).

boring_math.special_functions.ctrig.tan(z: complex, /, n: int = 22) complex

Tangent centered about z = 0.

Parameters:
  • z – independent variable

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

Returns:

Value of tangent(z) via sin(z)/cos(z)