Philipp Krones 75d43aac73
Rollup merge of #5443 - thiagoarrais:issue-2040, r=flip1995
Some accuracy lints for floating point operations

This will add some lints for accuracy on floating point operations suggested by @clarfon in #2040 (fixes #2040).

These are the remaining lints:

- [x] x.powi(2) => x * x
- [x] x.logN() / y.logN() => x.logbase(y)
- [x] x.logbase(E) => x.log()
- [x] x.logbase(10) => x.log10()
- [x] x.logbase(2) => x.log2().
- [x] x * PI / 180 => x.to_radians()
- [x] x * 180 / PI => x.to_degrees()
- [x] (x + 1).log() => x.log_1p()
- [x] sqrt(x * x + y * y) => x.hypot(y)

changelog: Included some accuracy lints for floating point operations
2020-07-13 15:59:41 +02:00
..
2020-06-10 01:35:47 +00:00
2020-07-01 13:05:41 +02:00
2020-07-01 13:05:41 +02:00
2020-07-06 18:25:20 +02:00
2020-06-13 10:08:12 -04:00
2020-06-13 10:08:12 -04:00
2020-06-13 10:08:12 -04:00
2020-04-26 18:00:51 +03:00
2020-07-03 16:47:38 -07:00
2020-07-03 16:47:38 -07:00
2020-07-01 13:05:41 +02:00