| MATLAB Function Reference | ![]() |
反餘弦(inverse cosine)與反超餘弦(inverse hyperbolic cosine)
Syntax
Y = acos(X) Y = acosh(X)
Description
acos 與 acosh 函式針對陣列元素進行運算。函式的定義域與值域包含複數。角度以弧度(radian)為單位。
Y = acos(X)
回傳 X 中每個元素的反餘弦值(arccosine)。當 X 中的實數元素介於
時,acos(X) 為實數並介於
之間。若 X 中的實數元素在範圍
之外,則 acos(X) 為複數。
Y = acosh(X)
回傳 X 中每個元素的反超餘弦值。
Examples
x = -1:.05:1; plot(x,acos(x)) x = 1:pi/40:pi; plot(x,acosh(x))
![]()
Algorithm
See Also
| abs | acot, acoth | ![]() |