


Bits error versus re



Bits error versus im
Results
Initial program 29.3
Simplified0.0
Final simplification0.0
herbie shell --seed 2019002 +o rules:numerics
(FPCore (re im)
:name "math.abs on complex"
(sqrt (+ (* re re) (* im im))))
Time bar (total: 2.4s)Debug log
1 calls. Slowest were:
| 5.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 calls. Slowest were:
| 0.0ms | (hypot re im) |
1 calls. Slowest were:
| 37.0ms | (hypot re im) |
3 calls. Slowest were:
| 2.0ms | (* -1 re) |
| 0.0ms | im |
| 0.0ms | re |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.6b | (* (sqrt (hypot re im)) (sqrt (hypot re im))) |
| 0.0b | (sqrt (hypot re im)) |
| 0.0b | (sqrt (hypot re im)) |
| 0.0b | (hypot re im) |
4 calls. Slowest were:
| 5.0ms | (* (sqrt (hypot re im)) (sqrt (hypot re im))) |
| 1.0ms | (sqrt (hypot re im)) |
| 1.0ms | (sqrt (hypot re im)) |
4 calls. Slowest were:
| 67.0ms | (sqrt (hypot re im)) |
| 55.0ms | (sqrt (hypot re im)) |
| 39.0ms | (hypot re im) |
| 33.0ms | (* (sqrt (hypot re im)) (sqrt (hypot re im))) |
41 calls. Slowest were:
| 37.0ms | (* (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im))) (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im)))) |
| 3.0ms | (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) |
| 2.0ms | (+ 1 1) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b