We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7278f9 + 3cfea99 commit 4d1aae7Copy full SHA for 4d1aae7
tests/pass/intrinsics-math.rs
@@ -125,9 +125,8 @@ pub fn main() {
125
126
assert_approx_eq!(5.0f32.gamma(), 24.0);
127
assert_approx_eq!(5.0f64.gamma(), 24.0);
128
- // These fail even on the host, precision seems to be terrible.
129
- //assert_approx_eq!(-0.5f32.gamma(), -2.0 * f32::consts::PI.sqrt());
130
- //assert_approx_eq!(-0.5f64.gamma(), -2.0 * f64::consts::PI.sqrt());
+ assert_approx_eq!((-0.5f32).gamma(), (-2.0) * f32::consts::PI.sqrt());
+ assert_approx_eq!((-0.5f64).gamma(), (-2.0) * f64::consts::PI.sqrt());
131
132
assert_eq!(2.0f32.ln_gamma(), (0.0, 1));
133
assert_eq!(2.0f64.ln_gamma(), (0.0, 1));
0 commit comments