Trait malachite_base::num::arithmetic::traits::SqrtAssign
source · [−]pub trait SqrtAssign {
fn sqrt_assign(&mut self);
}
Expand description
Replaces a number with its square root.
Required Methods
fn sqrt_assign(&mut self)
Implementations on Foreign Types
sourceimpl SqrtAssign for f32
impl SqrtAssign for f32
sourcefn sqrt_assign(&mut self)
fn sqrt_assign(&mut self)
Replaces a number with its square root.
$x \gets \sqrt x$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SqrtAssign for f64
impl SqrtAssign for f64
sourcefn sqrt_assign(&mut self)
fn sqrt_assign(&mut self)
Replaces a number with its square root.
$x \gets \sqrt x$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.