Graphics Reference
In-Depth Information
Table B-1
Angle and Trigonometry Functions
(continued)
Syntax
Description
genType
sinh
(genType
x
)
Returns the hyperbolic sine function
(
e
x
-
e
−x
)/2
genType
cosh
(genType
x
)
Returns the hyperbolic cosine function
(
e
x
+
e
−x
)/2
genType
tanh
(genType
x
)
Returns the hyperbolic tangent function
sinh(
x
)/cosh(
x
)
genType
asinh
(genType
x
)
Arc hyperbolic sine; returns the inverse of
sinh
.
genType
acosh
(genType
x
)
Arc hyperbolic cosine; returns the non-
negative inverse of
cosh
. Results are
undefined if
x
< 1.
genType
atanh
(genType
x
)
Arc hyperbolic tangent; returns the inverse of
tanh
. Results are undefined if ∣
x
∣ >= 1.
Exponential functions all operate component-wise. The description shown
in Table B-2 is per component.
Table B-2
Exponential Functions
Syntax
Description
genType
pow
(genType
x,
genType
y
)
Returns
x
raised to the
y
power, i.e.,
x
y
.
Results are undefined if
x
< 0.
Results are undefined if
x
= 0 and
y
<= 0.
genType
exp
(genType
x
)
Returns the natural exponentiation
of
x
, i.e.,
e
x
.
genType
log
(genType
angle
)
Returns the natural logarithm of
x,
i.e.,
returns the value
y
, which satisfies the
equation
x
=
e
y
.
Results are undefined if
x
<= 0.
genType
exp2
(genType
angle
)
Returns 2 raised to the
x
power, i.e., 2
x
.