


Bits error versus e



Bits error versus v
Initial program 0.1
Simplified0.1
rmApplied add-sqr-sqrt0.2
Applied associate-/r*0.2
rmApplied associate-/l*0.3
rmApplied *-un-lft-identity0.3
Applied *-un-lft-identity0.3
Applied times-frac0.3
Simplified0.3
Simplified0.1
Final simplification0.1
herbie shell --seed 2019016 +o rules:numerics
(FPCore (e v)
:name "Trigonometry A"
:pre (<= 0 e 1)
(/ (* e (sin v)) (+ 1 (* e (cos v)))))
Time bar (total: 26.6s)Debug log
| 256× | (pre true 80) |
| 134× | (body real 80) |
| 60× | (body real 1280) |
| 43× | (body real 640) |
| 11× | (body real 320) |
| 8× | (body real 160) |
| 52.0ms | (/ (* e (sin v)) (+ 1 (* e (cos v)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 0.1b | (* e (sin v)) |
| 0.0b | (/ (* e (sin v)) (fma (cos v) e 1)) |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate-*r* |
| 3× | times-frac |
| 3× | associate-/r* |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 8.0ms | (/ (* e (sin v)) (fma (cos v) e 1)) |
| 5.0ms | (* e (sin v)) |
| 82.0ms | (* e (sin v)) |
| 80.0ms | (/ (* e (sin v)) (fma (cos v) e 1)) |
| 823.0ms | (/ (* (* (* e (sin v)) (* e (sin v))) (* e (sin v))) (* (* (fma (cos v) e 1) (fma (cos v) e 1)) (fma (cos v) e 1))) |
| 482.0ms | (- (+ (* (pow e 3) v) (* e v)) (* (pow e 2) v)) |
| 109.0ms | (- (+ (/ (sin v) (* (pow e 2) (pow (cos v) 3))) (/ (sin v) (cos v))) (/ (sin v) (* e (pow (cos v) 2)))) |
| 102.0ms | (- (+ (/ (sin v) (* (pow e 2) (pow (cos v) 3))) (/ (sin v) (cos v))) (/ (sin v) (* e (pow (cos v) 2)))) |
| 50.0ms | (- (log (* e (sin v))) (log (fma (cos v) e 1))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.1b | (* e (sin v)) |
| 0.0b | (/ (/ (* e (sin v)) (sqrt (fma (cos v) e 1))) (sqrt (fma (cos v) e 1))) |
| 0.0b | (/ (* e (sin v)) (sqrt (fma (cos v) e 1))) |
| 0.0b | (sqrt (fma (cos v) e 1)) |
| 108× | times-frac |
| 63× | sqrt-prod |
| 54× | add-sqr-sqrt |
| 53× | add-cube-cbrt |
| 53× | *-un-lft-identity |
| 12× | associate-/r* |
| 11× | associate-/l* |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 9× | div-inv |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-*r* |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | associate-/l/ |
| 1× | *-commutative |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 8.0ms | (/ (/ (* e (sin v)) (sqrt (fma (cos v) e 1))) (sqrt (fma (cos v) e 1))) |
| 5.0ms | (/ (* e (sin v)) (sqrt (fma (cos v) e 1))) |
| 1.0ms | (* e (sin v)) |
| 1.0ms | (sqrt (fma (cos v) e 1)) |
| 144.0ms | (/ (* e (sin v)) (sqrt (fma (cos v) e 1))) |
| 97.0ms | (/ (/ (* e (sin v)) (sqrt (fma (cos v) e 1))) (sqrt (fma (cos v) e 1))) |
| 52.0ms | (* e (sin v)) |
| 47.0ms | (sqrt (fma (cos v) e 1)) |
| 791.0ms | (/ (* (* (* e (sin v)) (* e (sin v))) (* e (sin v))) (* (* (sqrt (fma (cos v) e 1)) (sqrt (fma (cos v) e 1))) (sqrt (fma (cos v) e 1)))) |
| 474.0ms | (- (+ (* (pow e 3) v) (* e v)) (* (pow e 2) v)) |
| 227.0ms | (- (- (log (* e (sin v))) (log (sqrt (fma (cos v) e 1)))) (log (sqrt (fma (cos v) e 1)))) |
| 225.0ms | (- (log (/ (* e (sin v)) (sqrt (fma (cos v) e 1)))) (log (sqrt (fma (cos v) e 1)))) |
| 125.0ms | (/ (/ (* (* (* e (sin v)) (* e (sin v))) (* e (sin v))) (* (* (sqrt (fma (cos v) e 1)) (sqrt (fma (cos v) e 1))) (sqrt (fma (cos v) e 1)))) (* (* (sqrt (fma (cos v) e 1)) (sqrt (fma (cos v) e 1))) (sqrt (fma (cos v) e 1)))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.1b | (* e (sin v)) |
| 0.0b | (cbrt (fma e (cos v) 1)) |
| 0.0b | (cbrt (fma (cos v) e 1)) |
| 0.0b | (* (fabs (cbrt (fma e (cos v) 1))) (sqrt (cbrt (fma (cos v) e 1)))) |
| 12× | associate-*r* |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | cbrt-prod |
| 6× | sqrt-prod |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | associate-*l* |
| 2× | *-commutative |
| 2× | pow1/3 |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 16.0ms | (* (fabs (cbrt (fma e (cos v) 1))) (sqrt (cbrt (fma (cos v) e 1)))) |
| 3.0ms | (* e (sin v)) |
| 1.0ms | (cbrt (fma e (cos v) 1)) |
| 1.0ms | (cbrt (fma (cos v) e 1)) |
| 94.0ms | (cbrt (fma (cos v) e 1)) |
| 90.0ms | (* (fabs (cbrt (fma e (cos v) 1))) (sqrt (cbrt (fma (cos v) e 1)))) |
| 61.0ms | (cbrt (fma e (cos v) 1)) |
| 36.0ms | (* e (sin v)) |
| 254.0ms | (- (+ (* 1/6 (* e (fabs (pow (fma e (cos v) 1) 1/3)))) (fabs (pow (fma e (cos v) 1) 1/3))) (* 5/72 (* (pow e 2) (fabs (pow (fma e (cos v) 1) 1/3))))) |
| 198.0ms | (- (+ (* 1/3 (/ (exp (* 1/3 (- (log (- (cos v))) (log (/ -1 e))))) (* e (cos v)))) (exp (* 1/3 (- (log (- (cos v))) (log (/ -1 e)))))) (* 1/9 (/ (exp (* 1/3 (- (log (- (cos v))) (log (/ -1 e))))) (* (pow e 2) (pow (cos v) 2))))) |
| 181.0ms | (- (+ (exp (* 1/3 (- (log (cos v)) (log (/ 1 e))))) (* 1/3 (/ (exp (* 1/3 (- (log (cos v)) (log (/ 1 e))))) (* (cos v) e)))) (* 1/9 (/ (exp (* 1/3 (- (log (cos v)) (log (/ 1 e))))) (* (pow (cos v) 2) (pow e 2))))) |
| 181.0ms | (- (+ (* 1/3 (/ (exp (* 1/3 (- (log (- (cos v))) (log (/ -1 e))))) (* e (cos v)))) (exp (* 1/3 (- (log (- (cos v))) (log (/ -1 e)))))) (* 1/9 (/ (exp (* 1/3 (- (log (- (cos v))) (log (/ -1 e))))) (* (pow e 2) (pow (cos v) 2))))) |
| 165.0ms | (- (+ (exp (* 1/3 (- (log (cos v)) (log (/ 1 e))))) (* 1/3 (/ (exp (* 1/3 (- (log (cos v)) (log (/ 1 e))))) (* (cos v) e)))) (* 1/9 (/ (exp (* 1/3 (- (log (cos v)) (log (/ 1 e))))) (* (pow (cos v) 2) (pow e 2))))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (/ e (/ (sqrt (fma (cos v) e 1)) (sin v))) |
| 0.1b | (/ (sqrt (fma (cos v) e 1)) (sin v)) |
| 0.0b | (/ (/ e (/ (sqrt (fma (cos v) e 1)) (sin v))) (sqrt (fma (cos v) e 1))) |
| 0.0b | (sqrt (fma (cos v) e 1)) |
| 66× | times-frac |
| 53× | add-sqr-sqrt |
| 52× | add-cube-cbrt |
| 52× | *-un-lft-identity |
| 42× | sqrt-prod |
| 31× | associate-/r* |
| 11× | associate-/l* |
| 11× | div-inv |
| 8× | associate-/r/ |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | frac-2neg |
| 3× | clear-num |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | associate-/l/ |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 8.0ms | (/ (sqrt (fma (cos v) e 1)) (sin v)) |
| 7.0ms | (/ (/ e (/ (sqrt (fma (cos v) e 1)) (sin v))) (sqrt (fma (cos v) e 1))) |
| 2.0ms | (sqrt (fma (cos v) e 1)) |
| 1.0ms | (/ e (/ (sqrt (fma (cos v) e 1)) (sin v))) |
| 151.0ms | (/ e (/ (sqrt (fma (cos v) e 1)) (sin v))) |
| 86.0ms | (/ (sqrt (fma (cos v) e 1)) (sin v)) |
| 67.0ms | (/ (/ e (/ (sqrt (fma (cos v) e 1)) (sin v))) (sqrt (fma (cos v) e 1))) |
| 37.0ms | (sqrt (fma (cos v) e 1)) |
| 505.0ms | (- (+ (* (pow e 3) v) (* e v)) (* (pow e 2) v)) |
| 234.0ms | (/ (* (* (sqrt (fma (cos v) e 1)) (sqrt (fma (cos v) e 1))) (sqrt (fma (cos v) e 1))) (* (* (sin v) (sin v)) (sin v))) |
| 202.0ms | (- (log (/ e (/ (sqrt (fma (cos v) e 1)) (sin v)))) (log (sqrt (fma (cos v) e 1)))) |
| 154.0ms | (- (+ (* 3/8 (* (pow e 3) v)) (* e v)) (* 1/2 (* (pow e 2) v))) |
| 148.0ms | (/ (/ 1 (/ (sqrt (fma (cos v) e 1)) (sin v))) (sqrt (cbrt (fma (cos v) e 1)))) |
9 alts after pruning (7 fresh and 2 done)
Merged error: 0.0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b
| 8000× | (pre true 80) |
| 4322× | (body real 80) |
| 1530× | (body real 1280) |
| 1225× | (body real 640) |
| 642× | (body real 320) |
| 281× | (body real 160) |