


Bits error versus g



Bits error versus h



Bits error versus a
Results
if g < 8.325941240374795e-162Initial program 35.1
rmApplied associate-*l/35.1
Applied cbrt-div31.6
Simplified31.6
Taylor expanded around -inf 31.5
Simplified31.5
if 8.325941240374795e-162 < g Initial program 33.5
rmApplied associate-*l/33.5
Applied cbrt-div33.5
Simplified33.5
rmApplied cbrt-prod29.9
Simplified29.9
rmApplied flip--29.8
Final simplification30.7
herbie shell --seed 2018365
(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: 28.6s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 35.2b
Found 4 expressions with local error:
| 31.0b | (sqrt (- (* g g) (* h h))) |
| 31.0b | (sqrt (- (* g g) (* h h))) |
| 10.0b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 9.8b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
4 calls. Slowest were:
| 13.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 12.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 4.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 304.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 288.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 32.0ms | (sqrt (- (* g g) (* h h))) |
| 24.0ms | (sqrt (- (* g g) (* h h))) |
38 calls. Slowest were:
| 620.0ms | (cbrt (* 1 (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 614.0ms | (cbrt (* 1 (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 552.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 31.3b
Found 4 expressions with local error:
| 31.0b | (sqrt (* (- g h) (+ g h))) |
| 31.0b | (sqrt (- (* g g) (* h h))) |
| 9.8b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 2.6b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 7.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 2.0ms | (sqrt (- (* g g) (* h h))) |
| 2.0ms | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 299.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 50.0ms | (sqrt (* (- g h) (+ g h))) |
| 40.0ms | (sqrt (- (* g g) (* h h))) |
| 29.0ms | (- (* g g) (* h h)) |
37 calls. Slowest were:
| 837.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 665.0ms | (cbrt (* 1 (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 404.0ms | (sqrt (* (- (* g g) (* h h)) (+ g h))) |
18 alts after pruning (18 fresh and 0 done)
Merged error: 30.2b
Found 4 expressions with local error:
| 31.0b | (sqrt (* (- g h) (+ g h))) |
| 31.0b | (sqrt (- (* g g) (* h h))) |
| 2.6b | (- (* g g) (* h h)) |
| 1.3b | (- (sqrt (* (- g h) (+ g h))) g) |
4 calls. Slowest were:
| 15.0ms | (- (sqrt (* (- g h) (+ g h))) g) |
| 4.0ms | (- (* g g) (* h h)) |
| 4.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 57.0ms | (- (sqrt (* (- g h) (+ g h))) g) |
| 54.0ms | (sqrt (* (- g h) (+ g h))) |
| 39.0ms | (sqrt (- (* g g) (* h h))) |
| 28.0ms | (- (* g g) (* h h)) |
31 calls. Slowest were:
| 427.0ms | (sqrt (* (- (* g g) (* h h)) (+ g h))) |
| 315.0ms | (sqrt (* (- (* g g) (* h h)) (+ (pow g 3) (pow h 3)))) |
| 296.0ms | (sqrt (* (- (pow g 3) (pow h 3)) (+ g h))) |
20 alts after pruning (20 fresh and 0 done)
Merged error: 30.2b
Found 4 expressions with local error:
| 31.0b | (sqrt (- (* g g) (* h h))) |
| 31.0b | (sqrt (- (* g g) (* h h))) |
| 9.8b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 2.6b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 6.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 2.0ms | (sqrt (- (* g g) (* h h))) |
| 2.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 275.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 34.0ms | (sqrt (- (* g g) (* h h))) |
| 32.0ms | (sqrt (- (* g g) (* h h))) |
| 18.0ms | (- (* g g) (* h h)) |
35 calls. Slowest were:
| 648.0ms | (cbrt (* 1 (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 410.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 359.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: 30.2b
57% (1.4b remaining)
Error of 30.7b against oracle of 29.3b and baseline of 32.6b