mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
use proper implementation of cos to check against
This commit is contained in:
parent
548dd9ff67
commit
e894367c52
|
@ -1230,7 +1230,10 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn check_cos_accuracy() {
|
fn check_cos_accuracy() {
|
||||||
let n: Num<i32, 8> = Num::new(1) / 32;
|
let n: Num<i32, 8> = Num::new(1) / 32;
|
||||||
assert_eq!(n.cos(), num!(0.9808));
|
assert_eq!(
|
||||||
|
n.cos(),
|
||||||
|
Num::from_f64((2. * core::f64::consts::PI / 32.).cos())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue