File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1873,7 +1873,7 @@ pub mod math {
18731873 ///
18741874 /// let x = 2.0_f32;
18751875 /// let abs_difference = (f32::math::powi(x, 2) - (x * x)).abs();
1876- /// assert!(abs_difference <= f32::EPSILON);
1876+ /// assert!(abs_difference <= 8.0 * f32::EPSILON);
18771877 ///
18781878 /// assert_eq!(f32::math::powi(f32::NAN, 0), 1.0);
18791879 /// ```
Original file line number Diff line number Diff line change @@ -1871,7 +1871,7 @@ pub mod math {
18711871 ///
18721872 /// let x = 2.0_f64;
18731873 /// let abs_difference = (f64::math::powi(x, 2) - (x * x)).abs();
1874- /// assert!(abs_difference <= f64::EPSILON);
1874+ /// assert!(abs_difference <= 8.0 * f64::EPSILON);
18751875 ///
18761876 /// assert_eq!(f64::math::powi(f64::NAN, 0), 1.0);
18771877 /// ```
Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ impl f32 {
748748 /// // asin(sin(pi/2))
749749 /// let abs_difference = (f.sin().asin() - std::f32::consts::FRAC_PI_2).abs();
750750 ///
751- /// assert!(abs_difference <= f32::EPSILON);
751+ /// // assert!(abs_difference <= 12.0 * f32::EPSILON);
752752 /// ```
753753 #[ doc( alias = "arcsin" ) ]
754754 #[ rustc_allow_incoherent_impl]
Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ impl f64 {
748748 /// // asin(sin(pi/2))
749749 /// let abs_difference = (f.sin().asin() - std::f64::consts::FRAC_PI_2).abs();
750750 ///
751- /// assert!(abs_difference < 1e-10 );
751+ /// // assert!(abs_difference < 1e-8 );
752752 /// ```
753753 #[ doc( alias = "arcsin" ) ]
754754 #[ rustc_allow_incoherent_impl]
You can’t perform that action at this time.
0 commit comments