


Bits error versus g



Bits error versus h



Bits error versus a
Results
if g < -7.173671306399909e-101Initial program 35.1
rmApplied associate-*l/35.1
Applied cbrt-div31.9
Simplified31.9
rmApplied flip--31.9
Applied frac-times32.6
Applied cbrt-div32.5
Simplified32.0
if -7.173671306399909e-101 < g Initial program 34.4
rmApplied cbrt-prod31.0
Simplified31.0
Final simplification31.5
herbie shell --seed 2019008 +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: 46.7s)Debug log
1 calls. Slowest were:
| 314.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: 33.4b
Found 4 expressions with local error:
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 8.1b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 7.3b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
4 calls. Slowest were:
| 8.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 6.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 283.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 282.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 40.0ms | (sqrt (- (* g g) (* h h))) |
| 23.0ms | (sqrt (- (* g g) (* h h))) |
38 calls. Slowest were:
| 940.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 557.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 356.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 28.7b
Found 4 expressions with local error:
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 8.1b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.6b | (- (* 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:
| 302.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 37.0ms | (sqrt (- (* g g) (* h h))) |
| 32.0ms | (sqrt (- (* g g) (* h h))) |
| 16.0ms | (- (* g g) (* h h)) |
37 calls. Slowest were:
| 633.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 307.0ms | (* (exp (* 1/3 (- (+ (log (/ -1 g)) (+ (log 1/2) (log (/ -1 a)))) (* 2 (log (/ -1 h)))))) (cbrt -1/2)) |
| 304.0ms | (cbrt (* (/ 1 (* 2 a)) (- (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
17 alts after pruning (17 fresh and 0 done)
Merged error: 28.2b
Found 4 expressions with local error:
| 28.1b | (sqrt (* (+ g h) (- g h))) |
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 8.1b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.6b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 7.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.0ms | (sqrt (- (* g g) (* h h))) |
| 2.0ms | (sqrt (* (+ g h) (- g h))) |
4 calls. Slowest were:
| 306.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 51.0ms | (sqrt (* (+ g h) (- g h))) |
| 37.0ms | (sqrt (- (* g g) (* h h))) |
| 27.0ms | (- (* g g) (* h h)) |
39 calls. Slowest were:
| 532.0ms | (sqrt (* (+ g h) (- (* g g) (* h h)))) |
| 454.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 419.0ms | (sqrt (* (+ (pow g 3) (pow h 3)) (- (pow g 3) (pow h 3)))) |
18 alts after pruning (18 fresh and 0 done)
Merged error: 28.2b
Found 4 expressions with local error:
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 28.1b | (sqrt (- (* g g) (* h h))) |
| 28.1b | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 4.0ms | (sqrt (- (* g g) (* h h))) |
| 3.0ms | (sqrt (- (* g g) (* h h))) |
| 3.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 41.0ms | (sqrt (- (* g g) (* h h))) |
| 39.0ms | (sqrt (- (* g g) (* h h))) |
| 31.0ms | (sqrt (- (* g g) (* h h))) |
| 24.0ms | (sqrt (- (* g g) (* h h))) |
40 calls. Slowest were:
| 172.0ms | (sqrt (- (pow (* g g) 3) (pow (* h h) 3))) |
| 171.0ms | (sqrt (- (pow (* g g) 3) (pow (* h h) 3))) |
| 164.0ms | (sqrt (- (* (* g g) (* g g)) (* (* h h) (* h h)))) |
19 alts after pruning (19 fresh and 0 done)
Merged error: 28.2b
43.3% (2.2b remaining)
Error of 31.5b against oracle of 29.3b and baseline of 33.1b