


Bits error versus re



Bits error versus im
Results
if re < -3.512834698096542e+153Initial program 59.0
Initial simplification59.0
Taylor expanded around -inf 7.4
Simplified7.4
if -3.512834698096542e+153 < re < 3.122530532110095e-218 or 2.20388124317475e-168 < re < 2.4414305271140054e+144Initial program 19.2
Initial simplification19.2
if 3.122530532110095e-218 < re < 2.20388124317475e-168Initial program 29.3
Initial simplification29.3
Taylor expanded around 0 34.2
if 2.4414305271140054e+144 < re Initial program 56.9
Initial simplification56.9
Taylor expanded around inf 7.3
Final simplification16.7
Time bar (total: 7.5s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 29.8 | 16.7 | 7.5 | 22.3 | 58.5% |
herbie shell --seed 2018297
(FPCore (re im)
:name "math.abs on complex"
(sqrt (+ (* re re) (* im im))))