


Bits error versus re



Bits error versus im
Results
if re < -1.6813385983305504e+75Initial program 45.1
Taylor expanded around -inf 9.5
Simplified9.5
if -1.6813385983305504e+75 < re < 1.509340664542111e+112Initial program 21.2
if 1.509340664542111e+112 < re Initial program 51.3
Taylor expanded around inf 7.4
Final simplification16.7
herbie shell --seed 2019004
(FPCore (re im)
:name "math.log/1 on complex, real part"
(log (sqrt (+ (* re re) (* im im)))))
Time bar (total: 2.2s)Debug log
1 calls. Slowest were:
| 5.0ms | (log (sqrt (+ (* re re) (* im im)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.2b
Found 1 expressions with local error:
| 31.9b | (sqrt (+ (* re re) (* im im))) |
1 calls. Slowest were:
| 4.0ms | (sqrt (+ (* re re) (* im im))) |
1 calls. Slowest were:
| 35.0ms | (sqrt (+ (* re re) (* im im))) |
9 calls. Slowest were:
| 112.0ms | (sqrt (- (* (* re re) (* re re)) (* (* im im) (* im im)))) |
| 41.0ms | (sqrt (+ (pow (* re re) 3) (pow (* im im) 3))) |
| 7.0ms | (sqrt (* (cbrt (+ (* re re) (* im im))) (cbrt (+ (* re re) (* im im))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 9.0b
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.0b
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.0b
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.0b
59.4% (9.5b remaining)
Error of 16.7b against oracle of 7.2b and baseline of 30.6b