


Bits error versus g



Bits error versus h



Bits error versus a
Results
if g < -6.359331887313869e-161Initial program 33.6
rmApplied associate-*l/33.6
Applied cbrt-div30.0
Simplified30.0
rmApplied add-cube-cbrt30.0
if -6.359331887313869e-161 < g Initial program 36.9
rmApplied associate-*l/36.9
Applied cbrt-div33.2
Simplified33.2
Taylor expanded around inf 32.6
Final simplification31.4
herbie shell --seed 2019007 +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: 50.9s)Debug log
1 calls. Slowest were:
| 390.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.6b
Found 4 expressions with local error:
| 29.9b | (sqrt (- (* g g) (* h h))) |
| 29.9b | (sqrt (- (* g g) (* h h))) |
| 8.1b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 6.7b | (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)))))) |
| 14.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 6.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 321.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 297.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 46.0ms | (sqrt (- (* g g) (* h h))) |
| 38.0ms | (sqrt (- (* g g) (* h h))) |
38 calls. Slowest were:
| 677.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 531.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 375.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.6b
Found 4 expressions with local error:
| 29.9b | (sqrt (* (+ g h) (- g h))) |
| 29.9b | (sqrt (- (* g g) (* h h))) |
| 6.7b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 2.8b | (- (* 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))) |
| 3.0ms | (sqrt (* (+ g h) (- g h))) |
4 calls. Slowest were:
| 285.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 37.0ms | (sqrt (* (+ g h) (- g h))) |
| 36.0ms | (sqrt (- (* g g) (* h h))) |
| 24.0ms | (- (* g g) (* h h)) |
39 calls. Slowest were:
| 666.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 489.0ms | (sqrt (* (+ g h) (- (* g g) (* h h)))) |
| 376.0ms | (sqrt (* (+ (pow g 3) (pow h 3)) (- (pow g 3) (pow h 3)))) |
21 alts after pruning (21 fresh and 0 done)
Merged error: 29.8b
Found 4 expressions with local error:
| 29.9b | (sqrt (- (* g g) (* h h))) |
| 29.9b | (sqrt (- (* g g) (* h h))) |
| 6.7b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 2.8b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 13.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 6.0ms | (sqrt (- (* g g) (* h h))) |
| 6.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 268.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 39.0ms | (sqrt (- (* g g) (* h h))) |
| 32.0ms | (sqrt (- (* g g) (* h h))) |
| 28.0ms | (- (* g g) (* h h)) |
37 calls. Slowest were:
| 1.0s | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 381.0ms | (cbrt (* 1 (+ (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
| 346.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: 29.8b
Found 4 expressions with local error:
| 29.9b | (sqrt (* (+ g h) (- g h))) |
| 29.9b | (sqrt (- (* g g) (* h h))) |
| 8.1b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 2.8b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 12.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 4.0ms | (- (* g g) (* h h)) |
| 3.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 287.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 48.0ms | (sqrt (* (+ g h) (- g h))) |
| 38.0ms | (sqrt (- (* g g) (* h h))) |
| 25.0ms | (- (* g g) (* h h)) |
39 calls. Slowest were:
| 624.0ms | (sqrt (* (+ g h) (- (* g g) (* h h)))) |
| 532.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 391.0ms | (sqrt (* (+ (pow g 3) (pow h 3)) (- (pow g 3) (pow h 3)))) |
22 alts after pruning (22 fresh and 0 done)
Merged error: 29.8b
58.4% (1.4b remaining)
Error of 31.4b against oracle of 29.9b and baseline of 33.4b