Functionsยง
- primitive_
float_ power_ of_ 2 - Computes $2^x$, where $x$ is a primitive float, returning the result as a primitive float of the
same type. Using this function is more accurate than using
x.exp2()or theexp2function provided bylibm. - primitive_
float_ power_ of_ 2_ rational - Computes $2^x$, where $x$ is a
Rational, returning the result as a primitive float.