## 3.8 Power and logarithm functions

R sqrt(T x)
The square root of x
Available since 2.0, vectorized in 2.13

R cbrt(T x)
The cube root of x
Available since 2.0, vectorized in 2.13

R square(T x)
The square of x
Available since 2.0, vectorized in 2.13

R exp(T x)
The natural exponential of x
Available since 2.0, vectorized in 2.13

R exp2(T x)
The base-2 exponential of x
Available since 2.0, vectorized in 2.13

R log(T x)
The natural logarithm of x
Available since 2.0, vectorized in 2.13

R log2(T x)
The base-2 logarithm of x
Available since 2.0, vectorized in 2.13

R log10(T x)
The base-10 logarithm of x
Available since 2.0, vectorized in 2.13

real pow(real x, real y)
Return x raised to the power of y. $\begin{equation*} \text{pow}(x,y) = x^y \end{equation*}$
Available since 2.0

R pow(T1 x, T2 y)
Vectorized implementation of the pow function
Available since 2.25

R inv(T x)
The inverse of x
Available since 2.0, vectorized in 2.13

R inv_sqrt(T x)
The inverse of the square root of x
Available since 2.0, vectorized in 2.13

R inv_square(T x)
The inverse of the square of x
Available since 2.0, vectorized in 2.13