


Bits error versus g



Bits error versus h
Initial program 1.0
Simplified1.0
rmApplied add-sqr-sqrt1.0
rmApplied sqrt-div1.0
rmApplied sqrt-div1.0
Applied associate-*l/1.0
Simplified1.0
Final simplification1.0
herbie shell --seed 2019016 +o rules:numerics
(FPCore (g h)
:name "2-ancestry mixing, negative discriminant"
(* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))))
Time bar (total: 14.7s)Debug log
| 544× | (pre true 80) |
| 288× | (body nan 80) |
| 256× | (body real 80) |
| 13.0ms | (* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.0b
Found 3 expressions with local error:
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.9b | (/ (acos (/ (- g) h)) 3) |
| 0.0b | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
| 4× | add-cube-cbrt |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | add-log-exp |
| 3× | associate-/l* |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | fma-udef |
| 2× | div-sub |
| 1× | div-inv |
| 1× | distribute-frac-neg |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cos-sum |
| 1× | acos-neg |
| 1× | acos-asin |
| 3.0ms | (/ (acos (/ (- g) h)) 3) |
| 2.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.0ms | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
| 89.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 38.0ms | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
| 12.0ms | (/ (acos (/ (- g) h)) 3) |
| 37.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 34.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 28.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 27.0ms | (* 1/3 (acos (* -1 (/ g h)))) |
| 26.0ms | (* 1/3 (acos (* -1 (/ g h)))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.9b
Found 4 expressions with local error:
| 1.0b | (log1p (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.9b | (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
| 0.9b | (/ (acos (/ (- g) h)) 3) |
| 5× | log1p-expm1-u |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 2× | div-sub |
| 1× | expm1-udef |
| 1× | div-inv |
| 1× | fma-udef |
| 1× | distribute-frac-neg |
| 1× | log1p-expm1 |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | expm1-log1p |
| 1× | log1p-udef |
| 1× | cos-sum |
| 1× | acos-neg |
| 1× | acos-asin |
| 7.0ms | (/ (acos (/ (- g) h)) 3) |
| 4.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 1.0ms | (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
| 0.0ms | (log1p (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 174.0ms | (log1p (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 158.0ms | (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
| 108.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 11.0ms | (/ (acos (/ (- g) h)) 3) |
| 40.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 39.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 38.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 29.0ms | (- (exp (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)))) 1) |
| 28.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.9b
Found 4 expressions with local error:
| 1.0b | (cos (fma 2/3 PI (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))))) |
| 1.0b | (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))) |
| 0.9b | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 0.9b | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 16× | sqrt-prod |
| 12× | add-sqr-sqrt |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 9× | pow1 |
| 7× | associate-*l* |
| 7× | associate-*r* |
| 6× | add-exp-log |
| 6× | sqrt-div |
| 6× | pow1/2 |
| 6× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | div-inv |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 2× | rem-sqrt-square |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | sqrt-unprod |
| 1× | pow-plus |
| 1× | rem-square-sqrt |
| 1× | cos-sum |
| 1× | frac-times |
| 1× | pow2 |
| 10.0ms | (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))) |
| 4.0ms | (cos (fma 2/3 PI (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))))) |
| 2.0ms | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 2.0ms | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 146.0ms | (cos (fma 2/3 PI (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))))) |
| 55.0ms | (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))) |
| 31.0ms | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 24.0ms | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 127.0ms | (* (* (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))) (sqrt (/ (acos (/ (- g) h)) 3))) (* (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))) (sqrt (/ (acos (/ (- g) h)) 3)))) |
| 43.0ms | (cos (+ (* 2/3 PI) (* (acos (* -1 (/ g h))) (pow (sqrt 1/3) 2)))) |
| 37.0ms | (* (sqrt (acos (* -1 (/ g h)))) (sqrt 1/3)) |
| 35.0ms | (* (acos (* -1 (/ g h))) (pow (sqrt 1/3) 2)) |
| 33.0ms | (* (acos (* -1 (/ g h))) (pow (sqrt 1/3) 2)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.9b
Found 4 expressions with local error:
| 1.0b | (/ (sqrt (acos (/ (- g) h))) (sqrt 3)) |
| 1.0b | (cos (fma 2/3 PI (* (sqrt (/ (acos (/ (- g) h)) 3)) (/ (sqrt (acos (/ (- g) h))) (sqrt 3))))) |
| 1.0b | (* (sqrt (/ (acos (/ (- g) h)) 3)) (/ (sqrt (acos (/ (- g) h))) (sqrt 3))) |
| 0.9b | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 36× | times-frac |
| 36× | add-sqr-sqrt |
| 35× | add-cube-cbrt |
| 35× | *-un-lft-identity |
| 29× | sqrt-prod |
| 22× | associate-*r* |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 7× | associate-*l* |
| 6× | associate-/l* |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | div-inv |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | sqrt-div |
| 3× | associate-/r* |
| 3× | sqrt-undiv |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | fma-udef |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | sqrt-unprod |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | rem-square-sqrt |
| 1× | clear-num |
| 1× | cos-sum |
| 1× | rem-sqrt-square |
| 1× | frac-times |
| 13.0ms | (* (sqrt (/ (acos (/ (- g) h)) 3)) (/ (sqrt (acos (/ (- g) h))) (sqrt 3))) |
| 8.0ms | (/ (sqrt (acos (/ (- g) h))) (sqrt 3)) |
| 4.0ms | (cos (fma 2/3 PI (* (sqrt (/ (acos (/ (- g) h)) 3)) (/ (sqrt (acos (/ (- g) h))) (sqrt 3))))) |
| 2.0ms | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 185.0ms | (cos (fma 2/3 PI (* (sqrt (/ (acos (/ (- g) h)) 3)) (/ (sqrt (acos (/ (- g) h))) (sqrt 3))))) |
| 59.0ms | (* (sqrt (/ (acos (/ (- g) h)) 3)) (/ (sqrt (acos (/ (- g) h))) (sqrt 3))) |
| 40.0ms | (/ (sqrt (acos (/ (- g) h))) (sqrt 3)) |
| 24.0ms | (sqrt (/ (acos (/ (- g) h)) 3)) |
| 314.0ms | (/ (* (* (sqrt (acos (/ (- g) h))) (sqrt (acos (/ (- g) h)))) (sqrt (acos (/ (- g) h)))) (* (* (sqrt 3) (sqrt 3)) (sqrt 3))) |
| 178.0ms | (* (* (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))) (sqrt (/ (acos (/ (- g) h)) 3))) (* (* (/ (sqrt (acos (/ (- g) h))) (sqrt 3)) (/ (sqrt (acos (/ (- g) h))) (sqrt 3))) (/ (sqrt (acos (/ (- g) h))) (sqrt 3)))) |
| 114.0ms | (* (* (* (sqrt (/ (acos (/ (- g) h)) 3)) (sqrt (/ (acos (/ (- g) h)) 3))) (sqrt (/ (acos (/ (- g) h)) 3))) (/ (* (* (sqrt (acos (/ (- g) h))) (sqrt (acos (/ (- g) h)))) (sqrt (acos (/ (- g) h)))) (* (* (sqrt 3) (sqrt 3)) (sqrt 3)))) |
| 54.0ms | (* (sqrt (acos (* -1 (/ g h)))) (/ 1 (sqrt 3))) |
| 52.0ms | (* (sqrt (acos (* -1 (/ g h)))) (/ 1 (sqrt 3))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.9b
0% (0.0b remaining)
Error of 1.0b against oracle of 1.0b and baseline of 1.0b
| 15971× | (pre true 80) |
| 8001× | (body real 80) |
| 7970× | (body nan 80) |