@@ -77,14 +77,14 @@ LL | let _ = (1.0 + x / 2.0).ln();
77
77
error: ln(1 + x) can be computed more accurately
78
78
--> $DIR/floating_point_log.rs:28:13
79
79
|
80
- LL | let _ = (1.0 + x.powi(2 )).ln();
81
- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
80
+ LL | let _ = (1.0 + x.powi(3 )).ln();
81
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
82
82
83
83
error: ln(1 + x) can be computed more accurately
84
84
--> $DIR/floating_point_log.rs:29:13
85
85
|
86
- LL | let _ = (1.0 + x.powi(2 ) / 2.0).ln();
87
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x.powi(2 ) / 2.0).ln_1p()`
86
+ LL | let _ = (1.0 + x.powi(3 ) / 2.0).ln();
87
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x.powi(3 ) / 2.0).ln_1p()`
88
88
89
89
error: ln(1 + x) can be computed more accurately
90
90
--> $DIR/floating_point_log.rs:30:13
@@ -101,8 +101,8 @@ LL | let _ = (x + 1.0).ln();
101
101
error: ln(1 + x) can be computed more accurately
102
102
--> $DIR/floating_point_log.rs:32:13
103
103
|
104
- LL | let _ = (x.powi(2 ) + 1.0).ln();
105
- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
104
+ LL | let _ = (x.powi(3 ) + 1.0).ln();
105
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
106
106
107
107
error: ln(1 + x) can be computed more accurately
108
108
--> $DIR/floating_point_log.rs:33:13
@@ -143,8 +143,8 @@ LL | let _ = (1.0 + x / 2.0).ln();
143
143
error: ln(1 + x) can be computed more accurately
144
144
--> $DIR/floating_point_log.rs:46:13
145
145
|
146
- LL | let _ = (1.0 + x.powi(2 )).ln();
147
- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
146
+ LL | let _ = (1.0 + x.powi(3 )).ln();
147
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
148
148
149
149
error: ln(1 + x) can be computed more accurately
150
150
--> $DIR/floating_point_log.rs:47:13
@@ -155,8 +155,8 @@ LL | let _ = (x + 1.0).ln();
155
155
error: ln(1 + x) can be computed more accurately
156
156
--> $DIR/floating_point_log.rs:48:13
157
157
|
158
- LL | let _ = (x.powi(2 ) + 1.0).ln();
159
- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
158
+ LL | let _ = (x.powi(3 ) + 1.0).ln();
159
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
160
160
161
161
error: ln(1 + x) can be computed more accurately
162
162
--> $DIR/floating_point_log.rs:49:13
0 commit comments