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.

acos, acosh<br />

2acos, acosh<br />

Purpose Inverse cosine and inverse hyperbolic cosine<br />

Syntax Y = acos(X)<br />

Y = acosh(X)<br />

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

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

2-28<br />

Y = acos(X) returns the inverse cosine (arccosine) for each element of X. For<br />

real elements of X in the domain [ – 11 , ] , acos(X) is real and in the range<br />

[ 0, π]<br />

. For real elements of X outside the domain [ – 11 , ] , acos(X) is complex.<br />

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

Examples Graph the inverse cosine function over the domain – 1 ≤ x ≤ 1, and the inverse<br />

hyperbolic cosine function over the domain 1 ≤ x ≤ π.<br />

y=acos(x)<br />

3.5<br />

2.5<br />

1.5<br />

0.5<br />

x = -1:.05:1; plot(x,acos(x))<br />

x = 1:pi/40:pi; plot(x,acosh(x))<br />

3<br />

2<br />

1<br />

0<br />

-1 -0.8 -0.6 -0.4 -0.2 0<br />

x<br />

0.2 0.4 0.6 0.8 1<br />

y=acosh(x)<br />

2<br />

1.8<br />

1.6<br />

1.4<br />

1.2<br />

1<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

1 1.5 2 2.5 3 3.5<br />

x

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

Saved successfully!

Ooh no, something went wrong!