Skip to main content

Trigonometric Functions

A list of the available trigonometric functions in csdl. Assume that x is an input vector, matrix, or tensor.

Sine Functions#

  • csdl.sin(x): Computes the element-wise sine of an array.

  • csdl.arcsin(x): Computes the element-wise inverse sine of an array.

  • csdl.sinh(x): Computes the element-wise hyperbolic sine of an array.

Cosine Functions#

  • csdl.cos(x): Computes the element-wise cosine of an array.

  • csdl.arccos(x): Computes the element-wise inverse cosine of an array.

  • csdl.cosh(x): Computes the element-wise hyperbolic cosine of an array.

Tangent Functions#

  • csdl.tan(x): Computes the element-wise tangent of an array.

  • csdl.arctan(x): Computes the element-wise inverse tangent of an array.

  • csdl.tanh(x): Computes the element-wise hyperbolic tangent of an array.

Secant Functions#

  • csdl.sec(x): Computes the element-wise secant of an array.

  • csdl.sech(x): Computes the element-wise hyperblic secant of an array.

Cosecant Functions#

  • csdl.cosec(x): Computes the element-wise cosecant of an array.

  • csdl.cosech(x): Computes the element-wise hyperbolic cosecant of an array.

Cotangent Functions#

  • csdl.cotan(x): Computes the element-wise cotangent of an array.

  • csdl.cotanh(x): Computes the element-wise cotangent of an array.