


Bits error versus re



Bits error versus im
Results
Initial program 37.5
Initial simplification13.1
rmApplied sqrt-prod13.4
Final simplification13.4
herbie shell --seed 2018362 +o rules:numerics
(FPCore (re im)
:name "math.sqrt on complex, imaginary part, im greater than 0 branch"
(* 0.5 (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))))
Time bar (total: 8.7s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 13.0b
Found 3 expressions with local error:
| 0.5b | (- (hypot re im) re) |
| 0.5b | (sqrt (* (- (hypot re im) re) 2.0)) |
| 0.0b | (hypot re im) |
3 calls. Slowest were:
| 5.0ms | (- (hypot re im) re) |
| 3.0ms | (sqrt (* (- (hypot re im) re) 2.0)) |
| 0.0ms | (hypot re im) |
3 calls. Slowest were:
| 99.0ms | (sqrt (* (- (hypot re im) re) 2.0)) |
| 42.0ms | (- (hypot re im) re) |
| 24.0ms | (hypot re im) |
14 calls. Slowest were:
| 260.0ms | (sqrt (* (- (* (hypot re im) (hypot re im)) (* re re)) 2.0)) |
| 75.0ms | (sqrt (* (- (pow (hypot re im) 3) (pow re 3)) 2.0)) |
| 3.0ms | (- im re) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 12.4b
Found 4 expressions with local error:
| 0.5b | (- (hypot re im) re) |
| 0.3b | (* (sqrt (- (hypot re im) re)) (sqrt 2.0)) |
| 0.0b | (sqrt (- (hypot re im) re)) |
| 0.0b | (hypot re im) |
4 calls. Slowest were:
| 7.0ms | (* (sqrt (- (hypot re im) re)) (sqrt 2.0)) |
| 4.0ms | (sqrt (- (hypot re im) re)) |
| 3.0ms | (- (hypot re im) re) |
4 calls. Slowest were:
| 97.0ms | (* (sqrt (- (hypot re im) re)) (sqrt 2.0)) |
| 97.0ms | (sqrt (- (hypot re im) re)) |
| 37.0ms | (- (hypot re im) re) |
| 33.0ms | (hypot re im) |
35 calls. Slowest were:
| 290.0ms | (* (* (* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re))) (sqrt (- (hypot re im) re))) (* (* (sqrt 2.0) (sqrt 2.0)) (sqrt 2.0))) |
| 143.0ms | (* (sqrt (- (* (hypot re im) (hypot re im)) (* re re))) (sqrt 2.0)) |
| 114.0ms | (sqrt (- (* (hypot re im) (hypot re im)) (* re re))) |
10 alts after pruning (8 fresh and 2 done)
Merged error: 12.4b
Found 4 expressions with local error:
| 0.5b | (- (hypot re im) re) |
| 0.5b | (- (hypot re im) re) |
| 0.5b | (- (hypot re im) re) |
| 0.4b | (cbrt (sqrt (- (hypot re im) re))) |
4 calls. Slowest were:
| 3.0ms | (- (hypot re im) re) |
| 3.0ms | (- (hypot re im) re) |
| 3.0ms | (- (hypot re im) re) |
4 calls. Slowest were:
| 156.0ms | (cbrt (sqrt (- (hypot re im) re))) |
| 40.0ms | (- (hypot re im) re) |
| 38.0ms | (- (hypot re im) re) |
| 31.0ms | (- (hypot re im) re) |
26 calls. Slowest were:
| 404.0ms | (exp (* 1/6 (- (+ (log 1/2) (log (/ 1 re))) (* 2 (log (/ 1 im)))))) |
| 239.0ms | (- (+ (* 1/72 (* (pow re 2) (pow (/ 1 (pow im 11)) 1/6))) (pow im 1/6)) (* 1/6 (* re (pow (/ 1 (pow im 5)) 1/6)))) |
| 156.0ms | (exp (* 1/6 (- (log 2) (log (/ -1 re))))) |
10 alts after pruning (8 fresh and 2 done)
Merged error: 12.4b
Found 4 expressions with local error:
| 0.5b | (- (hypot re im) re) |
| 0.5b | (- (hypot re im) re) |
| 0.5b | (- (hypot re im) re) |
| 0.5b | (- (hypot re im) re) |
4 calls. Slowest were:
| 3.0ms | (- (hypot re im) re) |
| 3.0ms | (- (hypot re im) re) |
| 3.0ms | (- (hypot re im) re) |
4 calls. Slowest were:
| 43.0ms | (- (hypot re im) re) |
| 41.0ms | (- (hypot re im) re) |
| 29.0ms | (- (hypot re im) re) |
| 28.0ms | (- (hypot re im) re) |
20 calls. Slowest were:
| 3.0ms | (- im re) |
| 3.0ms | (- im re) |
| 3.0ms | (- im re) |
10 alts after pruning (7 fresh and 3 done)
Merged error: 12.4b
0% (0.5b remaining)
Error of 13.4b against oracle of 12.9b and baseline of 13.4b