


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 +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: 33.2s)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)))))) |
| 7.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 288.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 247.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:
| 716.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 688.0ms | (cbrt (* 1 (+ (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
| 654.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:
| 15.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
| 5.0ms | (sqrt (* (+ g h) (- g h))) |
4 calls. Slowest were:
| 324.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 39.0ms | (sqrt (* (+ g h) (- g h))) |
| 38.0ms | (sqrt (- (* g g) (* h h))) |
| 26.0ms | (- (* g g) (* h h)) |
39 calls. Slowest were:
| 689.0ms | (sqrt (* (+ g h) (- (* g g) (* h h)))) |
| 561.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 388.0ms | (* (exp (* 1/3 (- (+ (log (/ -1 g)) (+ (log 1/2) (log (/ -1 a)))) (* 2 (log (/ -1 h)))))) (cbrt -1/2)) |
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:
| 6.0ms | (sqrt (- (* g g) (* h h))) |
| 6.0ms | (- (sqrt (* (+ g h) (- g h))) g) |
| 3.0ms | (sqrt (* (+ g h) (- g h))) |
4 calls. Slowest were:
| 59.0ms | (- (sqrt (* (+ g h) (- g h))) g) |
| 38.0ms | (sqrt (* (+ g h) (- g h))) |
| 28.0ms | (- (* g g) (* h h)) |
| 28.0ms | (sqrt (- (* g g) (* h h))) |
36 calls. Slowest were:
| 624.0ms | (sqrt (* (+ g h) (- (* g g) (* h h)))) |
| 396.0ms | (sqrt (* (+ (pow g 3) (pow h 3)) (- (pow g 3) (pow h 3)))) |
| 311.0ms | (sqrt (* (+ g h) (- (pow g 3) (pow h 3)))) |
21 alts after pruning (21 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:
| 13.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:
| 330.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 40.0ms | (sqrt (- (* g g) (* h h))) |
| 27.0ms | (- (* g g) (* h h)) |
| 27.0ms | (sqrt (- (* g g) (* h h))) |
37 calls. Slowest were:
| 604.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 354.0ms | (* (exp (* 1/3 (- (+ (log (/ -1 g)) (+ (log 1/2) (log (/ -1 a)))) (* 2 (log (/ -1 h)))))) (cbrt -1/2)) |
| 340.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: 30.2b
57.1% (1.4b remaining)
Error of 30.7b against oracle of 29.3b and baseline of 32.6b