csc

Cosecant of an angle given in radians.

Category: Mathematics > Elementary Math

Syntax

Y = csc(X)

Returns the cosecant of each element of X, in radians.

Description

csc(x) is 1 ./ sin(x). Its absolute value is never below 1 for real input, and it is large near multiples of pi. csc(pi/2) is 1.

Input arguments

X
Numeric array of any size. Complex values are allowed.

Output arguments

Y
Array of the same size as X.

Example

Cosecant

csc([pi/2 pi/6 -pi/2])
Output
ans = 1×3

    1.0000    2.0000   -1.0000

See also

sin cscd acsc sec