This commit is contained in:
Quaternions 2024-09-09 15:33:10 -07:00
parent fb9228b7fd
commit 14cec421e0

View File

@ -65,7 +65,7 @@ fn test_sqrt_zero(){
#[test] #[test]
fn test_sqrt_low(){ fn test_sqrt_low(){
let a=I32F32::HALF; let a=I32F32::HALF;
let b=a*a; let b=a.fixed_mul(a);
assert_eq!(b.sqrt(),a); assert_eq!(b.sqrt(),a);
} }
fn find_equiv_sqrt_via_f64(n:I32F32)->I32F32{ fn find_equiv_sqrt_via_f64(n:I32F32)->I32F32{