Skip to main content

exact_power

Function exact_power 

Source
pub fn exact_power<V: ValueAlgebra>(base: &V, exponent: &V) -> Result<V, String>
Expand description

base ** exponent for an exponent that is an exact number — what ** and pow are when their exponent is one: a fraction p/q takes the real q-th root and raises it to p (2 ** (1/2) is √2, dt ** (1/2) is √dt, an even root of a negative number refused), and any other exponent is the language’s own **, a float on either side the float power. A residue-dependent or provisional operand is followed branch by branch.