Skip to content

Commit

Permalink
use built in copysign
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Feb 6, 2024
1 parent 8b62a2b commit ac380b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geomath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub fn sincosd(x: f64) -> (f64, f64) {
};

if sinx == 0.0 {
sinx = libm::copysign(sinx, x); // special values from F.10.1.13
sinx = sinx.copysign(x); // special values from F.10.1.13
}
(sinx, cosx)
}
Expand Down

0 comments on commit ac380b1

Please sign in to comment.