Lines Matching full:roots
7 pub trait Roots: Integer { trait
20 /// # use num_integer::Roots;
27 /// # use num_integer::Roots;
34 /// use num_integer::Roots;
65 /// # use num_integer::Roots;
72 /// use num_integer::Roots;
94 /// use num_integer::Roots;
112 /// see [Roots::sqrt](trait.Roots.html#method.sqrt).
114 pub fn sqrt<T: Roots>(x: T) -> T { in sqrt()
119 /// see [Roots::cbrt](trait.Roots.html#method.cbrt).
121 pub fn cbrt<T: Roots>(x: T) -> T { in cbrt()
126 /// see [Roots::nth_root](trait.Roots.html#tymethod.nth_root).
128 pub fn nth_root<T: Roots>(x: T, n: u32) -> T { in nth_root()
134 impl Roots for $T { impl
140 assert!(n.is_odd(), "even roots of a negative are imaginary");
201 impl Roots for $T { impl
205 // Specialize small roots