pub trait FloorRootAssign<POW> {
// Required method
fn floor_root_assign(&mut self, pow: POW);
}
Expand description
Replaces a number with the floor of its $n$th root.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.
Replaces an integer with the floor of its $n$th root.
$x \gets \lfloor\sqrt[n]{x}\rfloor$.
§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.