Merge pull request #5143 from alankarkotwal:2.4

This commit is contained in:
Vadim Pisarevsky 2015-08-24 11:06:30 +00:00
commit 702afcd760

View File

@ -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: ::