


Bits error versus re



Bits error versus im
Results
if re < -4.381761495704048e+38Initial program 41.3
Initial simplification41.3
Taylor expanded around -inf 11.7
Simplified11.7
if -4.381761495704048e+38 < re < 5.6724642389801835e+94Initial program 20.7
Initial simplification20.7
if 5.6724642389801835e+94 < re Initial program 48.3
Initial simplification48.3
Taylor expanded around inf 8.3
Final simplification16.6
Time bar (total: 3.3s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 30.1 | 16.6 | 6.9 | 23.2 | 58.2% |
herbie shell --seed 2018296
(FPCore (re im)
:name "math.log/1 on complex, real part"
(log (sqrt (+ (* re re) (* im im)))))