


Bits error versus re



Bits error versus im



Bits error versus base
Results
Initial program 31.0
Initial simplification0.4
rmApplied pow10.4
Applied log-pow0.4
Applied associate-/l*0.4
rmApplied associate-/r/0.4
rmApplied associate-*l/0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2018360 +o rules:numerics
(FPCore (re im base)
:name "math.log/2 on complex, real part"
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0)) (+ (* (log base) (log base)) (* 0 0))))
Time bar (total: 9.5s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.3b
Found 2 expressions with local error:
| 0.4b | (/ (log (hypot re im)) (log base)) |
| 0.0b | (hypot re im) |
2 calls. Slowest were:
| 5.0ms | (/ (log (hypot re im)) (log base)) |
| 0.0ms | (hypot re im) |
2 calls. Slowest were:
| 136.0ms | (/ (log (hypot re im)) (log base)) |
| 39.0ms | (hypot re im) |
37 calls. Slowest were:
| 139.0ms | (/ (* (* (log (hypot re im)) (log (hypot re im))) (log (hypot re im))) (* (* (log base) (log base)) (log base))) |
| 124.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
| 29.0ms | (/ (* (cbrt (log (hypot re im))) (cbrt (log (hypot re im)))) (* (cbrt (log base)) (cbrt (log base)))) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.4b | (/ (log base) (log (hypot re im))) |
| 0.3b | (/ 1 (/ (log base) (log (hypot re im)))) |
| 0.0b | (hypot re im) |
3 calls. Slowest were:
| 8.0ms | (/ (log base) (log (hypot re im))) |
| 3.0ms | (/ 1 (/ (log base) (log (hypot re im)))) |
| 0.0ms | (hypot re im) |
3 calls. Slowest were:
| 169.0ms | (/ (log base) (log (hypot re im))) |
| 126.0ms | (/ 1 (/ (log base) (log (hypot re im)))) |
| 28.0ms | (hypot re im) |
59 calls. Slowest were:
| 1.2s | (* -1 (/ (- (log -1) (log (/ -1 base))) (log (/ -1 re)))) |
| 123.0ms | (/ (* (* (log base) (log base)) (log base)) (* (* (log (hypot re im)) (log (hypot re im))) (log (hypot re im)))) |
| 114.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.4b | (* (/ 1 (log base)) (log (hypot re im))) |
| 0.3b | (/ 1 (log base)) |
| 0.0b | (hypot re im) |
3 calls. Slowest were:
| 11.0ms | (* (/ 1 (log base)) (log (hypot re im))) |
| 2.0ms | (/ 1 (log base)) |
| 0.0ms | (hypot re im) |
3 calls. Slowest were:
| 207.0ms | (/ 1 (log base)) |
| 146.0ms | (* (/ 1 (log base)) (log (hypot re im))) |
| 24.0ms | (hypot re im) |
30 calls. Slowest were:
| 353.0ms | (* (* (* (/ 1 (log base)) (/ 1 (log base))) (/ 1 (log base))) (* (* (log (hypot re im)) (log (hypot re im))) (log (hypot re im)))) |
| 96.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
| 34.0ms | (/ 1 (- (log -1) (log (/ -1 base)))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.4b | (/ (log (hypot re im)) (log base)) |
| 0.0b | (hypot re im) |
2 calls. Slowest were:
| 5.0ms | (/ (log (hypot re im)) (log base)) |
| 0.0ms | (hypot re im) |
2 calls. Slowest were:
| 79.0ms | (/ (log (hypot re im)) (log base)) |
| 25.0ms | (hypot re im) |
37 calls. Slowest were:
| 161.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
| 139.0ms | (/ (* (* (log (hypot re im)) (log (hypot re im))) (log (hypot re im))) (* (* (log base) (log base)) (log base))) |
| 34.0ms | (/ (* (cbrt (log (hypot re im))) (cbrt (log (hypot re im)))) (* (cbrt (log base)) (cbrt (log base)))) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 0b
0% (0.3b remaining)
Error of 0.4b against oracle of 0.0b and baseline of 0.4b