nerdamer.csc(x: ExpressionInput): Expression
Computes the cosecant of an expression:
`csc(x) = 1/sin(x)`
.
Returns exact values at well-known angles by inverting the result of sin.
throwsUndefinedError If
`x`
is
`±∞`
or an integer multiple of
`π`
(where
`sin(x) = 0`
).
Examples
csc('pi/2').text() // "1"
csc('pi/6').text() // "2"
csc('pi/4').text() // "sqrt(2)"
// Symbolic
csc('x').text() // "csc(x)"