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§
source§impl SqrtAssign for f32
impl SqrtAssign for f32
source§fn 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.
source§impl SqrtAssign for f64
impl SqrtAssign for f64
source§fn 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.