


Bits error versus re



Bits error versus im
Results
if re < -6.1157351543722565e+62Initial program 44.3
Initial simplification44.3
Taylor expanded around -inf 10.0
Simplified10.0
if -6.1157351543722565e+62 < re < 2.194524025777904e+126Initial program 21.5
Initial simplification21.5
if 2.194524025777904e+126 < re Initial program 55.6
Initial simplification55.6
Taylor expanded around inf 8.1
Final simplification17.3
Time bar (total: 3.6s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 31.1 | 17.3 | 7.6 | 23.4 | 59% |
herbie shell --seed 2018351
(FPCore (re im)
:name "math.log/1 on complex, real part"
(log (sqrt (+ (* re re) (* im im)))))