


Bits error versus g



Bits error versus h
Results
Initial program 1.0
Simplified1.0
rmApplied distribute-frac-neg1.0
Applied acos-neg1.0
Applied div-sub1.0
Applied associate-+l-1.0
Applied cos-diff0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019004
(FPCore (g h)
:name "2-ancestry mixing, negative discriminant"
(* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))))
Time bar (total: 11.2s)Debug log
1 calls. Slowest were:
| 12.0ms | (* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.0b
Found 4 expressions with local error:
| 1.0b | (/ PI 3/2) |
| 1.0b | (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2)) |
| 1.0b | (/ (acos (/ (- g) h)) 3) |
| 1.0b | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
4 calls. Slowest were:
| 15.0ms | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
| 11.0ms | (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2)) |
| 6.0ms | (/ (acos (/ (- g) h)) 3) |
4 calls. Slowest were:
| 120.0ms | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
| 39.0ms | (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2)) |
| 12.0ms | (/ (acos (/ (- g) h)) 3) |
| 0.0ms | (/ PI 3/2) |
23 calls. Slowest were:
| 54.0ms | (* (cos (/ (/ PI 2) 3)) (cos (- (/ (asin (/ (- g) h)) 3) (/ PI 3/2)))) |
| 37.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 35.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 56.7b | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 1.0b | (sin (/ PI 3)) |
| 1.0b | (/ PI 3) |
| 1.0b | (/ PI 3/2) |
4 calls. Slowest were:
| 14.0ms | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 3.0ms | (sin (/ PI 3)) |
| 1.0ms | (/ PI 3) |
4 calls. Slowest were:
| 116.0ms | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 0.0ms | (sin (/ PI 3)) |
| 0.0ms | (/ PI 3) |
| 0.0ms | (/ PI 3/2) |
10 calls. Slowest were:
| 223.0ms | (* (+ (* (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) 1/2) (* (sin (/ PI 3)) (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) 2) |
| 201.0ms | (* (+ (* (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) 1/2) (* (sin (/ PI 3)) (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) 2) |
| 171.0ms | (* (+ (* (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) 1/2) (* (sin (/ PI 3)) (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) 2) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
| 0.9b | (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) |
| 0.0b | (* (acos (/ (- g) h)) 3/2) |
| 0.0b | (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2) |
4 calls. Slowest were:
| 24.0ms | (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2) |
| 10.0ms | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
| 8.0ms | (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) |
4 calls. Slowest were:
| 104.0ms | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
| 40.0ms | (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2) |
| 38.0ms | (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) |
| 12.0ms | (* (acos (/ (- g) h)) 3/2) |
19 calls. Slowest were:
| 271.0ms | (- (* (* (acos (/ (- g) h)) 3/2) (* (acos (/ (- g) h)) 3/2)) (* (* 3 PI) (* 3 PI))) |
| 126.0ms | (+ (pow (* (acos (/ (- g) h)) 3/2) 3) (pow (* 3 PI) 3)) |
| 63.0ms | (* 2/9 (+ (* 3/2 (acos (* -1 (/ g h)))) (* 3 PI))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (cbrt (* (* (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2))) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)))) |
| 1.0b | (* (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2))) |
| 1.0b | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
| 1.0b | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
4 calls. Slowest were:
| 7.0ms | (cbrt (* (* (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2))) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)))) |
| 6.0ms | (* (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2))) |
| 6.0ms | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
4 calls. Slowest were:
| 136.0ms | (cbrt (* (* (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2))) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)))) |
| 127.0ms | (* (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2))) |
| 108.0ms | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
| 83.0ms | (cos (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)) |
28 calls. Slowest were:
| 81.0ms | (* 1/2 (cos (* 2 (/ (+ (* (acos (/ (- g) h)) 3/2) (* 3 PI)) 9/2)))) |
| 68.0ms | (pow (cos (* 2/9 (+ (* 3/2 (acos (* -1 (/ g h)))) (* 3 PI)))) 2) |
| 63.0ms | (cos (* 2/9 (+ (* 3/2 (acos (* -1 (/ g h)))) (* 3 PI)))) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0.0b
0% (0.0b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b