gives the cosecant of z.


  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • The argument of Csc is assumed to be in radians. (Multiply by Degree to convert from degrees.)
  • .
  • 1/Sin[z] is automatically converted to Csc[z]. TrigFactorList[expr] does decomposition.
  • For certain special arguments, Csc automatically evaluates to exact values.
  • Csc can be evaluated to arbitrary numerical precision.
  • Csc automatically threads over lists.

Background & Context

  • Csc is the cosecant function, which is one of the basic functions encountered in trigonometry. It is defined as the reciprocal of the sine function: . It is defined for real numbers by letting be a radian angle measured counterclockwise from the axis along the circumference of the unit circle. Csc[x] then gives the reciprocal of the vertical coordinate of the arc endpoint. The equivalent schoolbook definition of the cosecant of an angle in a right triangle is the ratio of the length of the hypotenuse to the length of the leg opposite .
  • Csc automatically evaluates to exact values when its argument is a simple rational multiple of . For more complicated rational multiples, FunctionExpand can sometimes be used to obtain an explicit exact value. TrigFactorList can be used to factor expressions involving Csc into terms containing Sin and Cos. To specify an argument using an angle measured in degrees, the symbol Degree can be used as a multiplier (e.g. Csc[30 Degree]). When given exact numeric expressions as arguments, Csc may be evaluated to arbitrary numeric precision. Other operations useful for manipulation of symbolic expressions involving Csc include TrigToExp, TrigExpand, Simplify, and FullSimplify.
  • Csc threads element-wise over lists and matrices. In contrast, MatrixFunction can be used to give the cosecant of a square matrix (i.e. the power series for the cosecant function with ordinary powers replaced by matrix powers) as opposed to the cosecants of the individual matrix elements.
  • Csc is periodic with period , as reported by FunctionPeriod. Csc satisfies the identity , which is equivalent to the Pythagorean theorem. The definition of the cosecant function is extended to complex arguments using the definition , where is the base of the natural logarithm. Csc has poles at for an integer and evaluates to ComplexInfinity at these points. Csc[z] has series expansion sum_(k=0)^infty((-1)^(k+1) 2(2^(2 k-1)-1) TemplateBox[{{2,  , k}}, BernoulliB] )/((2 k)!)z^(2 k-1) about the origin that may be expressed in terms of the Bernoulli numbers BernoulliB.
  • The inverse function of Csc is ArcCsc. The hyperbolic cosecant is given by Csch. Other related mathematical functions include Sec and Sin.


open allclose all

Basic Examples  (6)

The argument is given in radians:

Use Degree to specify an argument in degrees:

Plot over a subset of the reals:

Plot over a subset of the complexes:

Series expansion at 0:

Asymptotic expansion at a singular point:

Scope  (40)

Numerical Evaluation  (6)

Evaluate numerically:

Evaluate to high precision:

The precision of the output tracks the precision of the input:

Evaluate for complex arguments:

Evaluate Csc efficiently at high precision:

Csc can deal with realvalued intervals:

Csc threads elementwise over lists and matrices:

Specific Values  (6)

Values of Csc at fixed points:

Values at infinity:

Singular points of Csc:

Local extrema of Csc:

Find a local minimum of Csc as the root of in the minimum's neighborhood:

Substitute in the result:

Visualize the result:

Simple exact values are generated automatically:

More complicated cases require explicit use of FunctionExpand:

Visualization  (3)

Plot the Csc function:

Plot the real part of :

Plot the imaginary part of :

Polar plot with :

Function Properties  (6)

The real domain of Csc:

Complex domain:

Csc achieves all real values except from the open interval :

Csc is a periodic function with a period :

Csc is an odd function:

Csc has the mirror property csc(TemplateBox[{z}, Conjugate])=TemplateBox[{{csc, (, z, )}}, Conjugate]:

TraditionalForm formatting:

Differentiation  (3)

First derivative:

Higher derivatives:

Formula for the ^(th) derivative:

Integration  (3)

Indefinite integral of Csc:

Definite integral of Csc over a period is 0:

More integrals:

Series Expansions  (3)

Find the Taylor expansion using Series:

Plot the first three approximations for Csc around :

General term in the series expansion of Csc:

Csc can be applied to power series:

Function Identities and Simplifications  (6)

Csc of a double angle:

Csc of a sum:

Convert multipleangle expressions:

Convert sums of trigonometric functions to products:

Expand assuming real variables and :

Convert to complex exponentials:

Function Representations  (4)

Representation through Sin:

Representation through Bessel functions:

Representation through SphericalHarmonicY:

Representation in terms of MeijerG:

Applications  (2)

Generate a plot with poles automatically removed:

Generate a plot over the complex argument plane:

Properties & Relations  (11)

Basic parity and periodicity properties of the cosecant function get automatically applied:

Use TrigFactorList to factor Csc into Sin and Cos:

Complicated expressions containing trigonometric functions do not automatically simplify:

Simplification with additional assumptions:

Compositions with the inverse functions:

Solve a trigonometric equation:

Solve for zeros and poles:

Numerically find a root of a transcendental equation:

Csc is automatically returned as a special case for many mathematical functions:

Calculate residue symbolically and numerically:

Csc is a numeric function:

Possible Issues  (4)

Machine-precision input is insufficient to give a correct answer:

Use arbitrary-precision evaluation instead:

A larger setting for $MaxExtraPrecision is needed to accurately approximate function value:

The precision of the output can be much smaller or larger than the precision of the input:

In traditional form, parentheses are needed around the argument:

Neat Examples  (6)

Various integrals and products:

Plot Csc at integer points:

Generate Csc from integrals and sums:

Wolfram Research (1988), Csc, Wolfram Language function, (updated 1996).


Wolfram Research (1988), Csc, Wolfram Language function, (updated 1996).


@misc{reference.wolfram_2020_csc, author="Wolfram Research", title="{Csc}", year="1996", howpublished="\url{}", note=[Accessed: 23-January-2021 ]}


@online{reference.wolfram_2020_csc, organization={Wolfram Research}, title={Csc}, year={1996}, url={}, note=[Accessed: 23-January-2021 ]}


Wolfram Language. 1988. "Csc." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996.


Wolfram Language. (1988). Csc. Wolfram Language & System Documentation Center. Retrieved from