Lines Matching full:roots
9 pub trait Roots: Integer { interface
22 /// # use num_integer::Roots;
29 /// # use num_integer::Roots;
36 /// use num_integer::Roots;
67 /// # use num_integer::Roots;
74 /// use num_integer::Roots;
96 /// use num_integer::Roots;
114 /// see [Roots::sqrt](trait.Roots.html#method.sqrt).
116 pub fn sqrt<T: Roots>(x: T) -> T { in sqrt()
121 /// see [Roots::cbrt](trait.Roots.html#method.cbrt).
123 pub fn cbrt<T: Roots>(x: T) -> T { in cbrt()
128 /// see [Roots::nth_root](trait.Roots.html#tymethod.nth_root).
130 pub fn nth_root<T: Roots>(x: T, n: u32) -> T { in nth_root()
136 impl Roots for $T { impl
142 assert!(n.is_odd(), "even roots of a negative are imaginary");
204 impl Roots for $T { impl
208 // Specialize small roots