다음: Complex Arithmetic, 상위 문서: Arithmetic [차례][찾아보기]
Compute
e^x
for each element of 가로.
To compute the matrix exponential, see Linear Algebra.
같이 보기: log.
Compute
exp (가로) - 1
accurately in the neighborhood of zero.
같이 보기: exp.
Compute the natural logarithm,
ln (가로)
,
for each element of 가로.
To compute the matrix logarithm, see Linear Algebra.
Return the real-valued natural logarithm of each element of 가로.
If any element results in a complex return value reallog
aborts and
issues an error.
Compute the base-2 logarithm of each element of 가로.
If called with two output arguments, split 가로 into
binary mantissa and exponent so that
1/2 <= abs(f) < 1
and e is an integer. If
x = 0
, f = e = 0
.
With one input argument, compute 2 .^ x for each element of 가로.
With two input arguments, return f .* (2 .^ e).
Compute the exponent for the smallest power of two larger than the input.
For each element in the input array 가로, return the first integer n such that 2^n ≥ abs (x).
Compute the real-valued, element-by-element power operator.
This is equivalent to 가로 .^ 세로
, except that
realpow
reports an error if any return value is complex.
Compute the square root of each element of 가로.
If 가로 is negative, a complex result is returned.
To compute the matrix square root, see Linear Algebra.
Return the real-valued square root of each element of 가로.
If any element results in a complex return value realsqrt
aborts and
issues an error.
Compute the real cube root of each element of 가로.
Unlike x^(1/3)
, the result will be negative if 가로 is
negative.
같이 보기: nthroot.
Compute the real (non-complex) n-th root of 가로.
가로 must have all real entries and n must be a scalar.
If n is an even integer and 가로 has negative entries then
nthroot
aborts and issues an error.
Example:
nthroot (-1, 3) ⇒ -1 (-1) ^ (1 / 3) ⇒ 0.50000 - 0.86603i
다음: Complex Arithmetic, 상위 문서: Arithmetic [차례][찾아보기]