


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
Final simplification0.0
herbie shell --seed 2019016
(FPCore (g h)
:name "2-ancestry mixing, negative discriminant"
(* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))))
Time bar (total: 10.9s)Debug log
| 544× | (pre true 80) |
| 288× | (body nan 80) |
| 256× | (body real 80) |
| 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 | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
| 0.9b | (/ (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 |
| 26.0ms | (cos (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2))) |
| 10.0ms | (+ (/ (acos (/ (- g) h)) 3) (/ PI 3/2)) |
| 6.0ms | (/ (acos (/ (- g) h)) 3) |
| 0.0ms | (/ PI 3/2) |
| 118.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) |
| 43.0ms | (* (cos (/ (/ PI 2) 3)) (cos (- (/ (asin (/ (- g) h)) 3) (/ PI 3/2)))) |
| 34.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 28.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 25.0ms | (* 1/3 (acos (* -1 (/ g h)))) |
| 23.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 56.4b | (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 |
| 16.0ms | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 11.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 9.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 1.0ms | (sin (/ PI 3)) |
| 95.0ms | (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) |
| 34.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 27.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 0.0ms | (sin (/ PI 3)) |
| 168.0ms | (* (+ (* (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2))) 1/2) (* (sin (/ PI 3)) (sin (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) 2) |
| 33.0ms | (/ (exp (/ (acos (/ g h)) 3)) (exp (/ PI 3/2))) |
| 16.0ms | (/ (exp (/ (acos (/ g h)) 3)) (exp (/ PI 3/2))) |
| 15.0ms | (cos (- (* 1/3 (acos (/ g h))) (* 2/3 PI))) |
| 14.0ms | (- (* (acos (/ g h)) 3/2) (* 3 PI)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 56.4b | (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- |
| 32.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) |
| 111.0ms | (cos (- (/ PI 6) (+ (/ (asin (/ g h)) 3) (/ PI 3/2)))) |
| 38.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 0.0ms | (sin (/ PI 3)) |
| 0.0ms | (/ PI 3/2) |
| 209.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) |
| 155.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) |
| 55.0ms | (* (cos (/ PI 6)) (cos (- (+ (/ (asin (/ g h)) 3) (/ PI 3/2))))) |
| 44.0ms | (* (cos (- (/ PI 6) (/ (/ PI 2) 3))) (cos (- (/ (acos (/ g h)) 3) (/ PI 3/2)))) |
| 41.0ms | (* (cos (/ PI 6)) (cos (+ (/ (asin (/ g h)) 3) (/ PI 3/2)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 56.4b | (cos (cbrt (* (* (- (/ (acos (/ g h)) 3) (/ PI 3/2)) (- (/ (acos (/ g h)) 3) (/ PI 3/2))) (- (/ (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 | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 10× | add-log-exp |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | difference-of-squares |
| 3× | distribute-lft-out-- |
| 3× | flip-- |
| 3× | frac-sub |
| 3× | div-sub |
| 3× | diff-log |
| 3× | flip3-- |
| 3× | sub-neg |
| 3× | acos-asin |
| 3× | associate--l- |
| 35.0ms | (cos (cbrt (* (* (- (/ (acos (/ g h)) 3) (/ PI 3/2)) (- (/ (acos (/ g h)) 3) (/ PI 3/2))) (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) |
| 11.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 10.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 6.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 94.0ms | (cos (cbrt (* (* (- (/ (acos (/ g h)) 3) (/ PI 3/2)) (- (/ (acos (/ g h)) 3) (/ PI 3/2))) (- (/ (acos (/ g h)) 3) (/ PI 3/2))))) |
| 42.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 39.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 36.0ms | (- (/ (acos (/ g h)) 3) (/ PI 3/2)) |
| 33.0ms | (/ (exp (/ (acos (/ g h)) 3)) (exp (/ PI 3/2))) |
| 33.0ms | (/ (exp (/ (acos (/ g h)) 3)) (exp (/ PI 3/2))) |
| 18.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))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 15971× | (pre true 80) |
| 8001× | (body real 80) |
| 7970× | (body nan 80) |