Trait malachite_base::num::arithmetic::traits::SqrtAssign

source ·
pub trait SqrtAssign {
    // Required method
    fn sqrt_assign(&mut self);
}
Expand description

Replaces a number with its square root.

Required Methods§

source

fn sqrt_assign(&mut self)

Implementations on Foreign Types§

source§

impl SqrtAssign for f32

source§

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

source§

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.

Implementors§