


Bits error versus re



Bits error versus im
Results
Initial program 30.9
Simplified0
Final simplification0
herbie shell --seed 2019022 +o rules:numerics
(FPCore (re im)
:name "math.log/1 on complex, real part"
(log (sqrt (+ (* re re) (* im im)))))
Time bar (total: 1.3s)Debug log
| 29.0ms | 256× | body | 80 | valid |
| 9.0ms | (log (sqrt (+ (* re re) (* im im)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 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: 0b
| 880.0ms | 8000× | body | 80 | valid |