Trait malachite_base::num::arithmetic::traits::CeilingRootAssign
source · pub trait CeilingRootAssign<POW> {
fn ceiling_root_assign(&mut self, pow: POW);
}Expand description
Replaces a number with the ceiling of its $n$th root.
Required Methods§
fn ceiling_root_assign(&mut self, pow: POW)
Implementations on Foreign Types§
source§impl CeilingRootAssign<u64> for u8
impl CeilingRootAssign<u64> for u8
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for u16
impl CeilingRootAssign<u64> for u16
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for u32
impl CeilingRootAssign<u64> for u32
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for u64
impl CeilingRootAssign<u64> for u64
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for u128
impl CeilingRootAssign<u64> for u128
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for usize
impl CeilingRootAssign<u64> for usize
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for i8
impl CeilingRootAssign<u64> for i8
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for i16
impl CeilingRootAssign<u64> for i16
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for i32
impl CeilingRootAssign<u64> for i32
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for i64
impl CeilingRootAssign<u64> for i64
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for i128
impl CeilingRootAssign<u64> for i128
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.
source§impl CeilingRootAssign<u64> for isize
impl CeilingRootAssign<u64> for isize
source§fn ceiling_root_assign(&mut self, exp: u64)
fn ceiling_root_assign(&mut self, exp: u64)
Replaces an integer with the ceiling of its $n$th root.
$x \gets \lceil\sqrt[n]{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if exp is zero, or if self is negative and exp is even.
Examples
See here.