


Bits error versus g



Bits error versus h



Bits error versus a
Results
Initial program 35.1
rmApplied cbrt-prod32.9
Simplified32.9
rmApplied cbrt-prod31.2
Simplified31.2
Final simplification31.2
herbie shell --seed 2018360 +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: 34.4s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 33.4b
Found 4 expressions with local error:
| 29.4b | (sqrt (- (* g g) (* h h))) |
| 29.4b | (sqrt (- (* g g) (* h h))) |
| 9.8b | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 6.4b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
4 calls. Slowest were:
| 12.0ms | (cbrt (* (/ 1 (* 2 a)) (- (- g) (sqrt (- (* g g) (* h h)))))) |
| 10.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* 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)))))) |
| 249.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:
| 857.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 855.0ms | (cbrt (* 1 (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 830.0ms | (cbrt (* 1 (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
19 alts after pruning (19 fresh and 0 done)
Merged error: 30.0b
Found 4 expressions with local error:
| 29.4b | (sqrt (- (* g g) (* h h))) |
| 29.4b | (sqrt (- (* g g) (* h h))) |
| 6.4b | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 3.2b | (- (* 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))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 282.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (- g) (sqrt (- (* g g) (* h h)))))) |
| 39.0ms | (sqrt (- (* g g) (* h h))) |
| 28.0ms | (sqrt (- (* g g) (* h h))) |
| 17.0ms | (- (* g g) (* h h)) |
37 calls. Slowest were:
| 850.0ms | (cbrt (* 1 (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 597.0ms | (cbrt (* (/ 1 (* 2 a)) (- (* (- g) (- g)) (* (sqrt (- (* g g) (* h h))) (sqrt (- (* g g) (* h h))))))) |
| 347.0ms | (cbrt (* (/ 1 (* 2 a)) (+ (pow (- g) 3) (pow (sqrt (- (* g g) (* h h))) 3)))) |
20 alts after pruning (20 fresh and 0 done)
Merged error: 29.5b
Found 4 expressions with local error:
| 29.4b | (sqrt (- (* g g) (* h h))) |
| 29.4b | (sqrt (- (* g g) (* h h))) |
| 3.2b | (- (* g g) (* h h)) |
| 3.2b | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 5.0ms | (sqrt (- (* g g) (* h h))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
| 4.0ms | (- (* g g) (* h h)) |
4 calls. Slowest were:
| 39.0ms | (sqrt (- (* g g) (* h h))) |
| 25.0ms | (sqrt (- (* g g) (* h h))) |
| 21.0ms | (- (* g g) (* h h)) |
| 18.0ms | (- (* g g) (* h h)) |
36 calls. Slowest were:
| 219.0ms | (sqrt (- (pow (* g g) 3) (pow (* h h) 3))) |
| 183.0ms | (sqrt (- (pow (* g g) 3) (pow (* h h) 3))) |
| 169.0ms | (sqrt (- (* (* g g) (* g g)) (* (* h h) (* h h)))) |
21 alts after pruning (20 fresh and 1 done)
Merged error: 29.5b
Found 4 expressions with local error:
| 29.4b | (sqrt (* (+ g h) (- g h))) |
| 29.4b | (sqrt (- (* g g) (* h h))) |
| 3.2b | (- (* g g) (* h h)) |
| 2.1b | (- (- g) (sqrt (- (* g g) (* h h)))) |
4 calls. Slowest were:
| 9.0ms | (- (- g) (sqrt (- (* g g) (* h h)))) |
| 6.0ms | (sqrt (* (+ g h) (- g h))) |
| 5.0ms | (sqrt (- (* g g) (* h h))) |
4 calls. Slowest were:
| 52.0ms | (- (- g) (sqrt (- (* g g) (* h h)))) |
| 31.0ms | (sqrt (* (+ g h) (- g h))) |
| 23.0ms | (sqrt (- (* g g) (* h h))) |
| 20.0ms | (- (* g g) (* h h)) |
97 calls. Slowest were:
| 630.0ms | (sqrt (* (+ g h) (- (* g g) (* h h)))) |
| 534.0ms | (sqrt (* (+ (pow g 3) (pow h 3)) (- (pow g 3) (pow h 3)))) |
| 380.0ms | (sqrt (* (+ g h) (- (pow g 3) (pow h 3)))) |
21 alts after pruning (20 fresh and 1 done)
Merged error: 29.5b
0% (1.7b remaining)
Error of 31.2b against oracle of 29.4b and baseline of 31.2b