@@ -1139,15 +1139,14 @@ pub fn libm() {
1139
1139
assert_approx_eq ! ( ( f64 :: consts:: PI / 2f64 ) . sin( ) , 1f64 ) ;
1140
1140
assert_approx_eq ! ( f32 :: consts:: FRAC_PI_6 . sin( ) , 0.5 ) ;
1141
1141
assert_approx_eq ! ( f64 :: consts:: FRAC_PI_6 . sin( ) , 0.5 ) ;
1142
- // Increase error tolerance from 12ULP to 16ULP because of the extra operation.
1142
+ // Increase error tolerance to 16ULP because of the extra operation.
1143
1143
assert_approx_eq ! ( f32 :: consts:: FRAC_PI_4 . sin( ) . asin( ) , f32 :: consts:: FRAC_PI_4 , 16 ) ;
1144
1144
assert_approx_eq ! ( f64 :: consts:: FRAC_PI_4 . sin( ) . asin( ) , f64 :: consts:: FRAC_PI_4 , 16 ) ;
1145
1145
assert_biteq ( 0.0f32 . asin ( ) , 0.0f32 , "asin(+0) = +0" ) ;
1146
1146
assert_biteq ( ( -0.0f32 ) . asin ( ) , -0.0 , "asin(-0) = -0" ) ;
1147
1147
assert_biteq ( 0.0f64 . asin ( ) , 0.0 , "asin(+0) = +0" ) ;
1148
1148
assert_biteq ( ( -0.0f64 ) . asin ( ) , -0.0 , "asin(-0) = -0" ) ;
1149
1149
1150
-
1151
1150
assert_approx_eq ! ( 1.0f32 . sinh( ) , 1.1752012f32 ) ;
1152
1151
assert_approx_eq ! ( 1.0f64 . sinh( ) , 1.1752011936438014f64 ) ;
1153
1152
assert_approx_eq ! ( 2.0f32 . asinh( ) , 1.443635475178810342493276740273105f32 ) ;
@@ -1173,13 +1172,13 @@ pub fn libm() {
1173
1172
assert_approx_eq ! ( ( f64 :: consts:: PI * 2f64 ) . cos( ) , 1f64 ) ;
1174
1173
assert_approx_eq ! ( f32 :: consts:: FRAC_PI_3 . cos( ) , 0.5 ) ;
1175
1174
assert_approx_eq ! ( f64 :: consts:: FRAC_PI_3 . cos( ) , 0.5 ) ;
1176
- // Increase error tolerance from 12ULP to 16ULP because of the extra operation.
1175
+ // Increase error tolerance to 16ULP because of the extra operation.
1177
1176
assert_approx_eq ! ( f32 :: consts:: FRAC_PI_4 . cos( ) . acos( ) , f32 :: consts:: FRAC_PI_4 , 16 ) ;
1178
1177
assert_approx_eq ! ( f64 :: consts:: FRAC_PI_4 . cos( ) . acos( ) , f64 :: consts:: FRAC_PI_4 , 16 ) ;
1179
1178
assert_biteq ( 1.0f32 . acos ( ) , 0.0 , "acos(1) = 0" ) ;
1180
1179
assert_biteq ( 1.0f64 . acos ( ) , 0.0 , "acos(1) = 0" ) ;
1181
1180
1182
- assert_approx_eq ! ( 1.0f32 . cosh( ) , 1.54308f32 ) ;
1181
+ assert_approx_eq ! ( 1.0f32 . cosh( ) , 1.5430806f32 ) ;
1183
1182
assert_approx_eq ! ( 1.0f64 . cosh( ) , 1.5430806348152437f64 ) ;
1184
1183
assert_eq ! ( 0.0f32 . cosh( ) , 1.0 ) ;
1185
1184
assert_eq ! ( 0.0f64 . cosh( ) , 1.0 ) ;
0 commit comments