Lines Matching refs:nth_root
7 let root = x.nth_root(n); in check()
18 assert_eq!(lo.nth_root(n), root); in check()
20 assert_eq!((&lo - 1u32).nth_root(n), &root - 1u32); in check()
25 assert_eq!(hi.nth_root(n), &root + 1u32); in check()
26 assert_eq!((&hi - 1u32).nth_root(n), root); in check()
60 assert_eq!(x.nth_root(10), expected); in test_nth_root_big()
71 assert_eq!(googol.nth_root(n), expected); in test_nth_root_googol()
86 assert_eq!(x.nth_root(n), expected); in test_nth_root_twos()
91 assert!(x.nth_root(x.bits() as u32).is_one()); in test_nth_root_twos()
92 assert!(x.nth_root(i32::MAX as u32).is_one()); in test_nth_root_twos()
93 assert!(x.nth_root(u32::MAX).is_one()); in test_nth_root_twos()
120 let res = big_x.nth_root(n); in check()