


Bits error versus x



Bits error versus y
Initial program 43.0
Taylor expanded around 0 1.0
Simplified1.0
Final simplification1.0
herbie shell --seed 2019008 +o rules:numerics
(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: 30.0s)Debug log
1 calls. Slowest were:
| 86.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.7b
Found 4 expressions with local error:
| 57.0b | (- (exp x) (exp (- x))) |
| 0.1b | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 0.0b | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 0.0b | (+ (exp x) (exp (- x))) |
4 calls. Slowest were:
| 13.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 9.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 5.0ms | (- (exp x) (exp (- x))) |
4 calls. Slowest were:
| 72.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 48.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 38.0ms | (- (exp x) (exp (- x))) |
| 23.0ms | (+ (exp x) (exp (- x))) |
60 calls. Slowest were:
| 298.0ms | (* 1/2 (* (- (exp x) (exp (- x))) (sin y))) |
| 266.0ms | (* (* (* (/ (- (exp x) (exp (- x))) 2) (/ (- (exp x) (exp (- x))) 2)) (/ (- (exp x) (exp (- x))) 2)) (* (* (sin y) (sin y)) (sin y))) |
| 243.0ms | (* 1/2 (* (- (exp x) (exp (* -1 x))) (sin y))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.1b | (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)) |
| 0.0b | (* (pow x 5) 1/60) |
| 0.0b | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 0.0b | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
4 calls. Slowest were:
| 20.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 9.0ms | (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)) |
| 4.0ms | (* (pow x 5) 1/60) |
4 calls. Slowest were:
| 66.0ms | (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)) |
| 49.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 23.0ms | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
| 19.0ms | (* (pow x 5) 1/60) |
34 calls. Slowest were:
| 189.0ms | (* 1/2 (* (+ (exp (* -1 x)) (exp x)) (cos y))) |
| 188.0ms | (* (* (* (/ (+ (exp x) (exp (- x))) 2) (/ (+ (exp x) (exp (- x))) 2)) (/ (+ (exp x) (exp (- x))) 2)) (* (* (cos y) (cos y)) (cos y))) |
| 185.0ms | (* (* (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2)) (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2)) (* (* (sin y) (sin y)) (sin y))) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.6b | (cbrt (sin y)) |
| 0.6b | (cbrt (sin y)) |
| 0.6b | (cbrt (sin y)) |
| 0.5b | (* (cbrt (sin y)) (cbrt (sin y))) |
4 calls. Slowest were:
| 7.0ms | (* (cbrt (sin y)) (cbrt (sin y))) |
| 1.0ms | (cbrt (sin y)) |
| 0.0ms | (cbrt (sin y)) |
4 calls. Slowest were:
| 167.0ms | (cbrt (sin y)) |
| 152.0ms | (* (cbrt (sin y)) (cbrt (sin y))) |
| 130.0ms | (cbrt (sin y)) |
| 120.0ms | (cbrt (sin y)) |
41 calls. Slowest were:
| 105.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 94.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 76.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.6b | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 0.6b | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 0.6b | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 0.5b | (* (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
4 calls. Slowest were:
| 9.0ms | (* (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 1.0ms | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 1.0ms | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
4 calls. Slowest were:
| 164.0ms | (* (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 162.0ms | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 159.0ms | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 139.0ms | (cbrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
41 calls. Slowest were:
| 380.0ms | (+ (exp (* 1/3 (- (log 1/3600) (* 10 (log (/ 1 x)))))) (+ (* 40/3 (/ (exp (* 1/3 (- (log 1/3600) (* 10 (log (/ 1 x)))))) (pow x 2))) (* 320/9 (/ (exp (* 1/3 (- (log 1/3600) (* 10 (log (/ 1 x)))))) (pow x 4))))) |
| 369.0ms | (+ (* 1/9 (* (pow x 2) (exp (* 1/3 (+ (log 4) (* 2 (log x))))))) (+ (exp (* 1/3 (+ (log 4) (* 2 (log x))))) (* 1/405 (* (pow x 4) (exp (* 1/3 (+ (log 4) (* 2 (log x))))))))) |
| 281.0ms | (- (+ (exp (* 1/3 (- (log -1/60) (* 5 (log (/ -1 x)))))) (* 20/3 (/ (exp (* 1/3 (- (log -1/60) (* 5 (log (/ -1 x)))))) (pow x 2)))) (* 40/9 (/ (exp (* 1/3 (- (log -1/60) (* 5 (log (/ -1 x)))))) (pow x 4)))) |
13 alts after pruning (11 fresh and 2 done)
Merged error: 0.0b
0% (0.9b remaining)
Error of 1.0b against oracle of 0.1b and baseline of 1.0b