@@ -18,6 +18,9 @@ use crate::utils::Float;
18
18
/// This distribution has a density function:
19
19
/// `f(x) = 1 / (pi * scale * (1 + ((x - median) / scale)^2))`
20
20
///
21
+ /// Note that at least for `f32`, results are not fully portable due to minor
22
+ /// differences in the target system's *tan* implementation, `tanf`.
23
+ ///
21
24
/// # Example
22
25
///
23
26
/// ```
@@ -130,11 +133,10 @@ mod test {
130
133
assert_eq ! ( buf, expected) ;
131
134
}
132
135
133
- // Warning: in a few cases, results vary slightly between different
134
- // platforms, presumably due to differences in precision of system impls
135
- // of the tan function. We work around this by avoiding these values.
136
136
test_samples ( 100f64 , 10.0 , & [ 77.93369152808678 , 90.1606912098641 ,
137
137
125.31516221323625 , 86.10217834773925 ] ) ;
138
- test_samples ( 10f32 , 7.0 , & [ 15.023088 , -5.446413 , 3.7092876 , 3.112482 ] ) ;
138
+ // Unfortunately this test is not fully portable due to reliance on the
139
+ // system's implementation of tanf (see doc on Cauchy struct).
140
+ // test_samples(10f32, 7.0, &[15.023088, -5.446413, 3.7092876, 3.112482]);
139
141
}
140
142
}
0 commit comments