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.

acsc, acsch<br />

2acsc, acsch<br />

Purpose Inverse cosecant and inverse hyperbolic cosecant<br />

Syntax Y = acsc(X)<br />

Y = acsch(X)<br />

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

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

2-32<br />

Y = acsc(X) returns the inverse cosecant (arccosecant) for each element of X.<br />

Y = acsch(X) returns the inverse hyperbolic cosecant for each element of X.<br />

Examples Graph the inverse cosecant over the domains – 10 ≤ x < – 1 and 1 < x ≤ 10, and<br />

the inverse hyperbolic cosecant over the domains – 20 ≤ x ≤ – 1 and 1 ≤ x ≤ 20.<br />

y=acsc(x)<br />

1.5<br />

1<br />

0.5<br />

0<br />

-0.5<br />

-1<br />

x1 = -10:0.01:-1.01; x2 = 1.01:0.01:10;<br />

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

x1 = -20:0.01:-1; x2 = 1:0.01:20;<br />

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

-1.5<br />

-10 -8 -6 -4 -2 0<br />

x1,x2<br />

2 4 6 8 10<br />

Algorithm acsc and acsch use these algorithms.<br />

csc ( z)<br />

1 –<br />

=<br />

csch ( z)<br />

1 –<br />

=<br />

1<br />

sin ⎛ -- ⎞<br />

⎝ z ⎠<br />

1 –<br />

1<br />

sinh ⎛--⎞ ⎝z⎠ 1 –<br />

y=acsch(x)<br />

1<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

-0.2<br />

-0.4<br />

-0.6<br />

-0.8<br />

-1<br />

-20 -15 -10 -5 0<br />

x1,x2<br />

5 10 15 20

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

Saved successfully!

Ooh no, something went wrong!