


Bits error versus re



Bits error versus im



Bits error versus base
Results
Initial program 30.3
Initial simplification0.4
rmApplied div-inv0.4
Final simplification0.4
herbie shell --seed 2018362 +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: 10.3s)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:
| 104.0ms | (/ (log (hypot re im)) (log base)) |
| 28.0ms | (hypot re im) |
37 calls. Slowest were:
| 265.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
| 146.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)))) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.4b | (/ (log (* 1 (hypot re im))) (log base)) |
| 0.0b | (hypot re im) |
2 calls. Slowest were:
| 12.0ms | (/ (log (* 1 (hypot re im))) (log base)) |
| 0.0ms | (hypot re im) |
2 calls. Slowest were:
| 90.0ms | (/ (log (* 1 (hypot re im))) (log base)) |
| 23.0ms | (hypot re im) |
37 calls. Slowest were:
| 366.0ms | (/ (* (* (log (* 1 (hypot re im))) (log (* 1 (hypot re im)))) (log (* 1 (hypot re im)))) (* (* (log base) (log base)) (log base))) |
| 263.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
| 28.0ms | (/ (* (cbrt (log (* 1 (hypot re im)))) (cbrt (log (* 1 (hypot re im))))) 1) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.4b | (* (log (hypot re im)) (/ 1 (log base))) |
| 0.3b | (/ 1 (log base)) |
| 0.0b | (hypot re im) |
3 calls. Slowest were:
| 5.0ms | (* (log (hypot re im)) (/ 1 (log base))) |
| 1.0ms | (/ 1 (log base)) |
| 0.0ms | (hypot re im) |
3 calls. Slowest were:
| 223.0ms | (/ 1 (log base)) |
| 111.0ms | (* (log (hypot re im)) (/ 1 (log base))) |
| 38.0ms | (hypot re im) |
25 calls. Slowest were:
| 366.0ms | (* (* (* (log (hypot re im)) (log (hypot re im))) (log (hypot re im))) (* (* (/ 1 (log base)) (/ 1 (log base))) (/ 1 (log base)))) |
| 229.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
| 45.0ms | (/ 1 (- (log -1) (log (/ -1 base)))) |
14 alts after pruning (13 fresh and 1 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:
| 3.0ms | (/ (log base) (log (hypot re im))) |
| 2.0ms | (/ 1 (/ (log base) (log (hypot re im)))) |
| 0.0ms | (hypot re im) |
3 calls. Slowest were:
| 152.0ms | (/ (log base) (log (hypot re im))) |
| 135.0ms | (/ 1 (/ (log base) (log (hypot re im)))) |
| 38.0ms | (hypot re im) |
59 calls. Slowest were:
| 1.1s | (* -1 (/ (- (log -1) (log (/ -1 base))) (log (/ -1 re)))) |
| 228.0ms | (* -1 (/ (log (/ -1 re)) (- (log -1) (log (/ -1 base))))) |
| 152.0ms | (/ (* (* (log base) (log base)) (log base)) (* (* (log (hypot re im)) (log (hypot re im))) (log (hypot re im)))) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 0b
0% (0.4b remaining)
Error of 0.4b against oracle of 0.0b and baseline of 0.4b