


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
rmApplied acos-asin0.1
Applied div-sub0.0
Applied associate--l-0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019022
(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
| 57.0ms | 256× | body | 80 | valid |
| 55.0ms | 293× | body | 80 | nan |
| 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 | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
| 1.0b | (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2)) |
| 1.0b | (/ (acos (/ (- g) h)) 3) |
| 7× | *-un-lft-identity |
| 6× | add-log-exp |
| 6× | div-sub |
| 5× | add-cube-cbrt |
| 5× | add-sqr-sqrt |
| 4× | associate-+l- |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | associate-/l* |
| 3× | distribute-frac-neg |
| 3× | acos-neg |
| 3× | acos-asin |
| 2× | div-inv |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | cos-diff |
| 1× | distribute-lft-out |
| 1× | flip-+ |
| 1× | frac-add |
| 1× | flip3-+ |
| 1× | sum-log |
| 1× | cos-sum |
| 1× | +-commutative |
| 7.0ms | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
| 6.0ms | (/ (acos (/ (- g) h)) 3) |
| 6.0ms | (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2)) |
| 0.0ms | (/ PI 3/2) |
| 126.0ms | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
| 23.0ms | (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2)) |
| 10.0ms | (/ (acos (/ (- g) h)) 3) |
| 0.0ms | (/ PI 3/2) |
| 52.0ms | (* (cos (/ (/ PI 2) 3)) (cos (- (/ (asin (/ (- g) h)) 3) (/ PI 3/2)))) |
| 33.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 30.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 29.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 24.0ms | (* 1/3 (acos (* -1 (/ g h)))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 56.5b | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 1.0b | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 1.0b | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 1.0b | (sin (/ PI 3)) |
| 8× | add-log-exp |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | sub-neg |
| 2× | difference-of-squares |
| 2× | distribute-lft-out-- |
| 2× | flip-- |
| 2× | frac-sub |
| 2× | div-sub |
| 2× | diff-log |
| 2× | flip3-- |
| 2× | cos-sum |
| 2× | acos-asin |
| 2× | associate--l- |
| 1× | sin-PI/3 |
| 1× | cos-diff |
| 22.0ms | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 10.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 10.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 3.0ms | (sin (/ PI 3)) |
| 116.0ms | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 42.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 28.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 0.0ms | (sin (/ PI 3)) |
| 192.0ms | (* (+ (* (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) 1/2) (* (sin (/ PI 3)) (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) 2) |
| 34.0ms | (/ (exp (/ (acos (/ g h)) 3)) (exp (/ PI 3/2))) |
| 17.0ms | (/ (exp (/ (acos (/ g h)) 3)) (exp (/ PI 3/2))) |
| 15.0ms | (- (* (acos (/ g h)) 3/2) (* 3 PI)) |
| 14.0ms | (cos (- (* 1/3 (acos (/ g h))) (* 2/3 PI))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 56.5b | (cos (- (/ PI 6) (+ (/ (asin (/ g h)) 3) (/ PI 3/2)))) |
| 1.0b | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 1.0b | (sin (/ PI 3)) |
| 1.0b | (/ PI 3/2) |
| 6× | add-log-exp |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | cos-sum |
| 2× | div-sub |
| 2× | sub-neg |
| 1× | difference-of-squares |
| 1× | associate--r- |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | div-inv |
| 1× | associate-+l- |
| 1× | frac-sub |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sin-PI/3 |
| 1× | clear-num |
| 1× | asin-acos |
| 1× | cos-diff |
| 1× | acos-asin |
| 1× | associate--l- |
| 22.0ms | (cos (- (/ PI 6) (+ (/ (asin (/ g h)) 3) (/ PI 3/2)))) |
| 5.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 1.0ms | (sin (/ PI 3)) |
| 0.0ms | (/ PI 3/2) |
| 104.0ms | (cos (- (/ PI 6) (+ (/ (asin (/ g h)) 3) (/ PI 3/2)))) |
| 50.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 0.0ms | (sin (/ PI 3)) |
| 0.0ms | (/ PI 3/2) |
| 173.0ms | (* (+ (* (cos (- (/ PI 6) (+ (/ (asin (/ g h)) 3) (/ PI 3/2)))) 1/2) (* (sin (/ PI 3)) (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) 2) |
| 157.0ms | (* (+ (* (cos (- (/ PI 6) (+ (/ (asin (/ g h)) 3) (/ PI 3/2)))) 1/2) (* (sin (/ PI 3)) (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) 2) |
| 51.0ms | (* (cos (/ PI 6)) (cos (- (+ (/ (asin (/ g h)) 3) (/ PI 3/2))))) |
| 35.0ms | (* (cos (/ PI 6)) (cos (- (+ (/ (asin (/ g h)) 3) (/ PI 3/2))))) |
| 28.0ms | (cos (- (+ (* 1/2 PI) (* 1/3 (asin (/ g h)))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 56.5b | (cos (- (- (/ PI 6) (/ PI 3/2)) (/ (asin (/ g h)) 3))) |
| 1.0b | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 1.0b | (/ PI 6) |
| 1.0b | (- (/ PI 6) (/ PI 3/2)) |
| 8× | add-log-exp |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 5× | cos-sum |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | sub-neg |
| 4× | pow1 |
| 3× | distribute-lft-out-- |
| 3× | div-inv |
| 2× | difference-of-squares |
| 2× | flip-- |
| 2× | frac-sub |
| 2× | associate--l+ |
| 2× | div-sub |
| 2× | diff-log |
| 2× | flip3-- |
| 1× | associate--r- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | asin-acos |
| 1× | cos-diff |
| 1× | acos-asin |
| 1× | associate--l- |
| 46.0ms | (cos (- (- (/ PI 6) (/ PI 3/2)) (/ (asin (/ g h)) 3))) |
| 15.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 7.0ms | (- (/ PI 6) (/ PI 3/2)) |
| 0.0ms | (/ PI 6) |
| 97.0ms | (cos (- (- (/ PI 6) (/ PI 3/2)) (/ (asin (/ g h)) 3))) |
| 28.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 0.0ms | (/ PI 6) |
| 0.0ms | (- (/ PI 6) (/ PI 3/2)) |
| 364.0ms | (- (* 1/3 (acos (/ g h))) (* 2/3 PI)) |
| 83.0ms | (* (cos (- (- (/ PI 6) (/ PI 3/2)) (/ (/ PI 2) 3))) (cos (/ (acos (/ g h)) 3))) |
| 73.0ms | (+ (cos (- (- (/ PI 6) (/ PI 3/2)) (/ (asin (/ g h)) 3))) (* (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))) (sqrt 3))) |
| 62.0ms | (+ (cos (- (- (/ PI 6) (/ PI 3/2)) (/ (asin (/ g h)) 3))) (* (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))) (sqrt 3))) |
| 51.0ms | (* (cos (/ PI 6)) (cos (- (- (/ PI 3/2)) (/ (asin (/ g h)) 3)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 2.2s | 8000× | body | 80 | valid |
| 1.6s | 7998× | body | 80 | nan |