fix sin implementation

This commit is contained in:
Corwin Kuiper 2021-06-08 17:08:05 +01:00
parent 81db1b861c
commit 1ac9e54296

View file

@ -289,7 +289,7 @@ impl<I: FixedWidthSignedInteger, const N: usize> Num<I, N> {
pub fn sin(self) -> Self { pub fn sin(self) -> Self {
let one: Self = I::one().into(); let one: Self = I::one().into();
let four: I = 4.into(); let four: I = 4.into();
(self - one / four).cos() (self + one / four).cos()
} }
} }