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 can be used with Interval and CenteredInterval objects. »
- 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 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.
Examplesopen 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:
Numerical Evaluation (6)
The precision of the output tracks the precision of the input:
Evaluate for complex arguments:
Evaluate Csc efficiently at high precision:
Csc threads elementwise over lists and matrices:
Csc can be used with Interval and CenteredInterval objects:
Specific Values (6)
Values of Csc at fixed points:
Singular points of Csc:
Local extrema of Csc:
Find a local minimum of Csc as the root of in the minimum's neighborhood:
Simple exact values are generated automatically:
More complicated cases require explicit use of FunctionExpand:
Plot the Csc function:
Function Properties (13)
The real domain of Csc:
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 is not an analytic function:
Csc is monotonic in a specific range:
Csc is not injective:
Csc is not surjective:
Csc is neither non-negative nor non-positive:
It has both singularity and discontinuity when x is a multiple of π:
Series Expansions (3)
Function Identities and Simplifications (6)
Function Representations (4)
Representation through Sin:
Representation through Bessel functions:
Representation through SphericalHarmonicY:
Representation in terms of MeijerG:
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:
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:
Wolfram Research (1988), Csc, Wolfram Language function, https://reference.wolfram.com/language/ref/Csc.html (updated 2021).
Wolfram Language. 1988. "Csc." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/Csc.html.
Wolfram Language. (1988). Csc. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Csc.html