[−][src]Trait mathru::elementary::Power
Power functions
https://en.wikipedia.org/wiki/Exponentiation#Power_functions
Required methods
Loading content...Implementations on Foreign Types
impl Power for f32
[src]
fn pow(&self, exp: &Self) -> Self
[src]
fn root(&self, root: &Self) -> Self
[src]
fn sqrt(&self) -> Self
[src]
impl Power for f64
[src]
fn pow(&self, exp: &Self) -> Self
[src]
fn root(&self, root: &Self) -> Self
[src]
fn sqrt(&self) -> Self
[src]
Implementors
impl<T> Power for Complex<T> where
T: Real,
[src]
T: Real,
fn pow(&self, exp: &Self) -> Self
[src]
Power
Example
use mathru::{elementary::Power, num::Complex}; let a: Complex<f64> = Complex::new(1.0_f64, 2.0_f64); let b: Complex<f64> = Complex::new(-2.0_f64, -1.0_f64); let refer: Complex<f64> = Complex::new(-0.6006033457684014, -0.07399065302898929); assert_eq!(refer, a.pow(&b));