23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

csc, csch<br />

2csc, csch<br />

Purpose Cosecant and hyperbolic cosecant<br />

Syntax Y = csc(x)<br />

Y = csch(x)<br />

Description The csc and csch functions operate element-wise on arrays. The functions’<br />

domains and ranges include complex values. All angles are in radians.<br />

2-348<br />

Y = csc(x) returns the cosecant for each element of x.<br />

Y = csch(x) returns the hyperbolic cosecant for each element of x.<br />

Examples Graph the cosecant and hyperbolic cosecant over the domains – π < x < 0 and<br />

0 < x < π .<br />

y=csc(x)<br />

150<br />

100<br />

50<br />

0<br />

-50<br />

-100<br />

x1 = -pi+0.01:0.01:-0.01; x2 = 0.01:0.01:pi-0.01;<br />

plot(x1,csc(x1),x2,csc(x2))<br />

plot(x1,csch(x1),x2,csch(x2))<br />

-150<br />

-4 -3 -2 -1 0<br />

x1,x2<br />

1 2 3 4<br />

y=csch(x)<br />

100<br />

80<br />

60<br />

40<br />

20<br />

0<br />

-20<br />

-40<br />

-60<br />

-80<br />

-100<br />

-4 -3 -2 -1 0<br />

x1,x2<br />

1 2 3 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!