MATLAB Function Reference |
Cosecant and hyperbolic cosecant
Syntax
Y = csc(x) Y = csch(x)
Description
The csc
and csch
functions operate element-wise on arrays. The functions' domains and ranges include complex values. All angles are in radians.
Y = csc(x)
returns the cosecant for each element of x
.
Y = csch(x)
returns the hyperbolic cosecant for each element of x
.
Examples
Graph the cosecant and hyperbolic cosecant over the domains and .
x1 = -pi+0.01:0.01:-0.01; x2 = 0.01:0.01:pi-0.01; plot(x1,csc(x1),x2,csc(x2)) plot(x1,csch(x1),x2,csch(x2))
Algorithm
See Also
cross | cumprod |