


Bits error versus re



Bits error versus im
Results
Initial program 29.7
Simplified0.0
Final simplification0.0
herbie shell --seed 2019022 +o rules:numerics
(FPCore (re im)
:name "math.abs on complex"
(sqrt (+ (* re re) (* im im))))
Time bar (total: 892.0ms)Debug log
| 12.0ms | 256× | body | 80 | valid |
| 4.0ms | (sqrt (+ (* re re) (* im im))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (hypot re im) |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | *-un-lft-identity |
| 1× | hypot-udef |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 0.0ms | (hypot re im) |
| 32.0ms | (hypot re im) |
| 1.0ms | (* -1 re) |
| 0.0ms | im |
| 0.0ms | re |
1 alts after pruning (0 fresh and 1 done)
Merged error: 0.0b
| 615.0ms | 8000× | body | 80 | valid |