Commit 98078c23 authored by Alankar Kotwal's avatar Alankar Kotwal

Merge pull request #1 from alankarkotwal/bugfix

Correct missing braces in operations_in_arrays.rst
parents 5a53f416 1d92a73a
...@@ -2507,7 +2507,7 @@ The function ``pow`` raises every element of the input array to ``power`` : ...@@ -2507,7 +2507,7 @@ The function ``pow`` raises every element of the input array to ``power`` :
.. math:: .. math::
\texttt{dst} (I) = \fork{\texttt{src}(I)^power}{if \texttt{power} is integer}{|\texttt{src}(I)|^power}{otherwise} \texttt{dst} (I) = \fork{\texttt{src}(I)^{power}}{if \texttt{power} is integer}{|\texttt{src}(I)|^{power}}{otherwise}
So, for a non-integer power exponent, the absolute values of input array elements are used. However, it is possible to get true values for negative values using some extra operations. In the example below, computing the 5th root of array ``src`` shows: :: So, for a non-integer power exponent, the absolute values of input array elements are used. However, it is possible to get true values for negative values using some extra operations. In the example below, computing the 5th root of array ``src`` shows: ::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment