


Bits error versus re



Bits error versus im
Results
if re < -9.654391066010857e+153Initial program 59.5
Taylor expanded around -inf 7.2
Simplified7.2
if -9.654391066010857e+153 < re < 5.474516698358515e+115Initial program 20.0
if 5.474516698358515e+115 < re Initial program 49.7
Taylor expanded around inf 8.8
Final simplification16.6
herbie shell --seed 2019004
(FPCore (re im)
:name "math.abs on complex"
(sqrt (+ (* re re) (* im im))))
Time bar (total: 1.6s)Debug log
1 calls. Slowest were:
| 2.0ms | (sqrt (+ (* re re) (* im im))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 31.9b
Found 1 expressions with local error:
| 31.9b | (sqrt (+ (* re re) (* im im))) |
1 calls. Slowest were:
| 2.0ms | (sqrt (+ (* re re) (* im im))) |
1 calls. Slowest were:
| 40.0ms | (sqrt (+ (* re re) (* im im))) |
9 calls. Slowest were:
| 140.0ms | (sqrt (- (* (* re re) (* re re)) (* (* im im) (* im im)))) |
| 33.0ms | (sqrt (+ (pow (* re re) 3) (pow (* im im) 3))) |
| 4.0ms | (sqrt (* (cbrt (+ (* re re) (* im im))) (cbrt (+ (* re re) (* im im))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 9.5b
Found 0 expressions with local error:
0 calls. Slowest were:
0 calls. Slowest were:
0 calls. Slowest were:
4 alts after pruning (2 fresh and 2 done)
Merged error: 9.5b
Found 0 expressions with local error:
0 calls. Slowest were:
0 calls. Slowest were:
0 calls. Slowest were:
4 alts after pruning (1 fresh and 3 done)
Merged error: 9.5b
Found 0 expressions with local error:
0 calls. Slowest were:
0 calls. Slowest were:
0 calls. Slowest were:
4 alts after pruning (0 fresh and 4 done)
Merged error: 9.5b
58.9% (9.0b remaining)
Error of 16.6b against oracle of 7.6b and baseline of 29.5b