


Bits error versus x



Bits error versus y
Initial program 43.4
Taylor expanded around 0 0.8
Final simplification0.8
herbie shell --seed 2019021
(FPCore (x y)
:name "Euler formula imaginary part (p55)"
(im (complex (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) (* (/ (- (exp x) (exp (- x))) 2) (sin y)))))
Time bar (total: 34.9s)Debug log
| 95.0ms | (im (complex (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) (* (/ (- (exp x) (exp (- x))) 2) (sin y)))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 43.1b
Found 4 expressions with local error:
| 57.4b | (- (exp x) (exp (- x))) |
| 0.1b | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 0.0b | (+ (exp x) (exp (- x))) |
| 0.0b | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 12× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 8× | add-log-exp |
| 8× | add-cube-cbrt |
| 8× | add-exp-log |
| 8× | associate-*l* |
| 8× | add-cbrt-cube |
| 8× | pow1 |
| 6× | associate-*r* |
| 2× | div-inv |
| 2× | cbrt-unprod |
| 2× | *-commutative |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | distribute-lft-out |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | +-commutative |
| 12.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 10.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 9.0ms | (+ (exp x) (exp (- x))) |
| 7.0ms | (- (exp x) (exp (- x))) |
| 100.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 53.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 48.0ms | (- (exp x) (exp (- x))) |
| 27.0ms | (+ (exp x) (exp (- x))) |
| 385.0ms | (* (* (* (/ (- (exp x) (exp (- x))) 2) (/ (- (exp x) (exp (- x))) 2)) (/ (- (exp x) (exp (- x))) 2)) (* (* (sin y) (sin y)) (sin y))) |
| 264.0ms | (* 1/2 (* (- (exp x) (exp (- x))) (sin y))) |
| 231.0ms | (* (* (* (/ (+ (exp x) (exp (- x))) 2) (/ (+ (exp x) (exp (- x))) 2)) (/ (+ (exp x) (exp (- x))) 2)) (* (* (cos y) (cos y)) (cos y))) |
| 214.0ms | (* 1/2 (* (- (exp x) (exp (* -1 x))) (sin y))) |
| 187.0ms | (* 1/2 (* (+ (exp (* -1 x)) (exp x)) (cos y))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.1b | (* 1/3 (pow x 3)) |
| 0.1b | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 0.0b | (* 1/60 (pow x 5)) |
| 0.0b | (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) |
| 11× | associate-*r* |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 4× | associate-*l* |
| 3× | *-commutative |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | unpow3 |
| 1× | flip3-+ |
| 1× | sum-log |
| 1× | +-commutative |
| 1× | cube-mult |
| 22.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 6.0ms | (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) |
| 3.0ms | (* 1/60 (pow x 5)) |
| 2.0ms | (* 1/3 (pow x 3)) |
| 78.0ms | (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) |
| 76.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 34.0ms | (* 1/60 (pow x 5)) |
| 29.0ms | (* 1/3 (pow x 3)) |
| 145.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 120.0ms | (* (* (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) (* (* (sin y) (sin y)) (sin y))) |
| 120.0ms | (* (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) (sin y)) |
| 94.0ms | (+ (* 1/120 (* (pow x 5) (sin y))) (* 1/6 (* (pow x 3) (sin y)))) |
| 80.0ms | (+ (log (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) (log (sin y))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.7b | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 0.7b | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 0.7b | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 0.5b | (* (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2))) |
| 20× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | pow1 |
| 7× | associate-*l* |
| 7× | associate-*r* |
| 7× | pow1/3 |
| 7× | cbrt-div |
| 6× | add-exp-log |
| 5× | div-inv |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-plus |
| 1× | frac-times |
| 1× | pow2 |
| 17.0ms | (* (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2))) |
| 10.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 6.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 6.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 204.0ms | (* (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2))) |
| 182.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 177.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 166.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 485.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 413.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 274.0ms | (+ (* (pow (cbrt 1/2) 2) (exp (* 1/3 (+ (log 4) (* 2 (log x)))))) (+ (* 1/405 (* (pow (cbrt 1/2) 2) (* (pow x 4) (exp (* 1/3 (+ (log 4) (* 2 (log x)))))))) (* 1/9 (* (pow (cbrt 1/2) 2) (* (pow x 2) (exp (* 1/3 (+ (log 4) (* 2 (log x)))))))))) |
| 236.0ms | (- (+ (* 1/18 (* (cbrt 1/2) (* (pow x 2) (exp (* 1/3 (+ (log 2) (log x))))))) (* (cbrt 1/2) (exp (* 1/3 (+ (log 2) (log x)))))) (* 1/3240 (* (cbrt 1/2) (* (pow x 4) (exp (* 1/3 (+ (log 2) (log x)))))))) |
| 228.0ms | (- (+ (* 1/18 (* (cbrt 1/2) (* (pow x 2) (exp (* 1/3 (+ (log 2) (log x))))))) (* (cbrt 1/2) (exp (* 1/3 (+ (log 2) (log x)))))) (* 1/3240 (* (cbrt 1/2) (* (pow x 4) (exp (* 1/3 (+ (log 2) (log x)))))))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.7b | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 0.7b | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 0.6b | (cbrt (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))))) |
| 0.5b | (* (cbrt (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))))) (cbrt (/ 1 2))) |
| 18× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | cbrt-div |
| 11× | add-sqr-sqrt |
| 7× | associate-*r* |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | pow1 |
| 5× | pow1/3 |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 3× | div-inv |
| 3× | flip-+ |
| 3× | flip3-+ |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 2× | frac-times |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 10.0ms | (* (cbrt (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))))) (cbrt (/ 1 2))) |
| 4.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 4.0ms | (cbrt (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))))) |
| 4.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 200.0ms | (* (cbrt (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))))) (cbrt (/ 1 2))) |
| 197.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 179.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 168.0ms | (cbrt (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))))) |
| 392.0ms | (* (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) (/ 1 2)) |
| 330.0ms | (* (cbrt (- (* (* 2 x) (* 2 x)) (* (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))))) (cbrt (/ 1 2))) |
| 303.0ms | (cbrt (- (* (* 2 x) (* 2 x)) (* (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))))) |
| 301.0ms | (* (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) (/ 1 2)) |
| 284.0ms | (* (cbrt (- (* (* 2 x) (* 2 x)) (* (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))))) (cbrt 1)) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 0.0b
0% (0.7b remaining)
Error of 0.8b against oracle of 0.1b and baseline of 0.8b