File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1879,7 +1879,7 @@ pub mod math {
18791879 ///
18801880 /// let x = 2.0_f32;
18811881 /// let abs_difference = (f32::math::powi(x, 2) - (x * x)).abs();
1882- /// assert!(abs_difference <= 1e-4 );
1882+ /// assert!(abs_difference <= 1e-5 );
18831883 ///
18841884 /// assert_eq!(f32::math::powi(f32::NAN, 0), 1.0);
18851885 /// ```
@@ -1942,8 +1942,8 @@ pub mod math {
19421942 /// let abs_difference_x = (f32::math::abs_sub(x, 1.0) - 2.0).abs();
19431943 /// let abs_difference_y = (f32::math::abs_sub(y, 1.0) - 0.0).abs();
19441944 ///
1945- /// assert!(abs_difference_x <= 1e-4 );
1946- /// assert!(abs_difference_y <= 1e-4 );
1945+ /// assert!(abs_difference_x <= 1e-6 );
1946+ /// assert!(abs_difference_y <= 1e-6 );
19471947 /// ```
19481948 ///
19491949 /// _This standalone function is for testing only.
@@ -1988,7 +1988,7 @@ pub mod math {
19881988 /// // x^(1/3) - 2 == 0
19891989 /// let abs_difference = (f32::math::cbrt(x) - 2.0).abs();
19901990 ///
1991- /// assert!(abs_difference <= 1e-4 );
1991+ /// assert!(abs_difference <= 1e-6 );
19921992 /// ```
19931993 ///
19941994 /// _This standalone function is for testing only.
You can’t perform that action at this time.
0 commit comments