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.

acot, acoth<br />

2acot, acoth<br />

Purpose Inverse cotangent and inverse hyperbolic cotangent<br />

Syntax Y = acot(X)<br />

Y = acoth(X)<br />

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

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

2-30<br />

Y = acot(X) returns the inverse cotangent (arccotangent) for each element of X.<br />

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

Examples Graph the inverse cotangent over the domains – 2π ≤ x < 0 and 0 < x ≤ 2π, and<br />

the inverse hyperbolic cotangent over the domains<br />

1 < x ≤ 30.<br />

– 30 ≤ x < – 1 and<br />

y=acot(x)<br />

1.5<br />

1<br />

0.5<br />

0<br />

-0.5<br />

-1<br />

x1 = -2*pi:pi/30:-0.1; x2 = 0.1:pi/30:2*pi;<br />

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

x1 = -30:0.1:-1.1; x2 = 1.1:0.1:30;<br />

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

-1.5<br />

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

x1 x2<br />

2 4 6 8<br />

y=acoth(x)<br />

2<br />

1.5<br />

1<br />

0.5<br />

0<br />

-0.5<br />

-1<br />

-1.5<br />

-2<br />

-30 -20 -10 0<br />

x1,x2<br />

10 20 30

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

Saved successfully!

Ooh no, something went wrong!