


Bits error versus g



Bits error versus h



Bits error versus a
Results
if g < -1.590581472858523e-162Initial program 33.0
rmApplied associate-*l/33.0
Applied cbrt-div29.5
Simplified29.5
rmApplied flip--29.4
Applied frac-times30.4
Applied cbrt-div30.4
Simplified29.9
if -1.590581472858523e-162 < g Initial program 35.9
rmApplied cbrt-prod32.2
Simplified32.2
rmApplied add-cube-cbrt32.2
Applied sqrt-prod32.2
Simplified32.2
Final simplification31.2
herbie shell --seed 2019005 +o rules:numerics
(FPCore (g h a)
:name "2-ancestry mixing, positive discriminant"
(+ (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h))))))))
Time bar (total: 49.9s)Debug log
1 calls. Slowest were:
| 379.0ms | (+ (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h))))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 32.0b
Found 4 expressions with local error:
| 26.9b | (sqrt (- (* g g) (* h h))) |
| 26.9b | (sqrt (- (* g g) (* h h))) |
| 8.4b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 8.0b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
4 calls. Slowest were:
| 14.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 12.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 315.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 303.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 30.0ms | (sqrt (- (* g g) (* h h))) |
| 26.0ms | (sqrt (- (* g g) (* h h))) |
38 calls. Slowest were:
| 681.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 588.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 381.0ms | (* (exp (* 1/3 (- (+ (log (/ -1 g)) (+ (log 1/2) (log (/ -1 a)))) (* 2 (log (/ -1 h)))))) (cbrt -1/2)) |
20 alts after pruning (20 fresh and 0 done)
Merged error: 27.1b
Found 4 expressions with local error:
| 26.9b | (sqrt (- (* g g) (* h h))) |
| 26.9b | (sqrt (- (* g g) (* h h))) |
| 8.4b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.0b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 13.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 290.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 45.0ms | (sqrt (- (* g g) (* h h))) |
| 38.0ms | (sqrt (- (* g g) (* h h))) |
| 26.0ms | (- (* g g) (* h h)) |
37 calls. Slowest were:
| 673.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 339.0ms | (* (exp (* 1/3 (- (+ (log 2) (log (/ 1 a))) (log (/ 1 g))))) (cbrt -1/2)) |
| 324.0ms | (cbrt (* (/ 1 (* 2 a)) (- (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
21 alts after pruning (21 fresh and 0 done)
Merged error: 26.9b
Found 4 expressions with local error:
| 26.9b | (sqrt (* (+ g h) (- g h))) |
| 26.9b | (sqrt (- (* g g) (* h h))) |
| 8.4b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.0b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 12.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
| 5.0ms | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 616.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 40.0ms | (sqrt (* (+ g h) (- g h))) |
| 27.0ms | (sqrt (- (* g g) (* h h))) |
| 17.0ms | (- (* g g) (* h h)) |
39 calls. Slowest were:
| 600.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 480.0ms | (sqrt (* (+ g h) (- (* g g) (* h h)))) |
| 398.0ms | (* (exp (* 1/3 (- (+ (log 2) (log (/ 1 a))) (log (/ 1 g))))) (cbrt -1/2)) |
25 alts after pruning (25 fresh and 0 done)
Merged error: 26.8b
Found 4 expressions with local error:
| 26.9b | (sqrt (- (* g g) (* h h))) |
| 26.9b | (sqrt (- (* g g) (* h h))) |
| 8.0b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.0b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 13.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 340.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 38.0ms | (sqrt (- (* g g) (* h h))) |
| 38.0ms | (sqrt (- (* g g) (* h h))) |
| 20.0ms | (- (* g g) (* h h)) |
37 calls. Slowest were:
| 558.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 409.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
| 305.0ms | (cbrt (* 1 (+ (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
24 alts after pruning (24 fresh and 0 done)
Merged error: 26.8b
41.3% (2.0b remaining)
Error of 31.2b against oracle of 29.1b and baseline of 32.6b