


Bits error versus re



Bits error versus im
Results
if re < -3.6713244494953644e+65Initial program 45.5
Taylor expanded around -inf 9.6
Simplified9.6
if -3.6713244494953644e+65 < re < 2.011001543074701e+123Initial program 20.7
if 2.011001543074701e+123 < re Initial program 53.2
Taylor expanded around inf 8.3
Final simplification16.7
Time bar (total: 3.7s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 30.4 | 16.7 | 7.2 | 23.1 | 59.1% |
herbie shell --seed 2018290
(FPCore (re im)
:name "math.log/1 on complex, real part"
(log (sqrt (+ (* re re) (* im im)))))