


Bits error versus x



Bits error versus y
Initial program 43.6
Taylor expanded around 0 0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2019002 +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: 34.9s)Debug log
1 calls. Slowest were:
| 144.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.8b
Found 4 expressions with local error:
| 58.2b | (- (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:
| 10.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 10.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 7.0ms | (+ (exp x) (exp (- x))) |
4 calls. Slowest were:
| 100.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 63.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 53.0ms | (- (exp x) (exp (- x))) |
| 23.0ms | (+ (exp x) (exp (- x))) |
60 calls. Slowest were:
| 388.0ms | (* (* (* (/ (- (exp x) (exp (- x))) 2) (/ (- (exp x) (exp (- x))) 2)) (/ (- (exp x) (exp (- x))) 2)) (* (* (sin y) (sin y)) (sin y))) |
| 378.0ms | (* (* (* (/ (+ (exp x) (exp (- x))) 2) (/ (+ (exp x) (exp (- x))) 2)) (/ (+ (exp x) (exp (- x))) 2)) (* (* (cos y) (cos y)) (cos y))) |
| 296.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.1b | (* (pow x 5) 1/60) |
| 0.0b | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 0.0b | (+ (exp x) (exp (- x))) |
4 calls. Slowest were:
| 14.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 8.0ms | (+ (exp x) (exp (- x))) |
| 5.0ms | (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)) |
4 calls. Slowest were:
| 86.0ms | (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)) |
| 70.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 24.0ms | (+ (exp x) (exp (- x))) |
| 19.0ms | (* (pow x 5) 1/60) |
38 calls. Slowest were:
| 256.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))) |
| 238.0ms | (* (* (* (/ (+ (exp x) (exp (- x))) 2) (/ (+ (exp x) (exp (- x))) 2)) (/ (+ (exp x) (exp (- x))) 2)) (* (* (cos y) (cos y)) (cos y))) |
| 237.0ms | (* 1/2 (* (+ (exp (* -1 x)) (exp x)) (cos y))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.1b
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:
| 9.0ms | (* (cbrt (sin y)) (cbrt (sin y))) |
| 1.0ms | (cbrt (sin y)) |
| 1.0ms | (cbrt (sin y)) |
4 calls. Slowest were:
| 178.0ms | (cbrt (sin y)) |
| 161.0ms | (cbrt (sin y)) |
| 155.0ms | (* (cbrt (sin y)) (cbrt (sin y))) |
| 137.0ms | (cbrt (sin y)) |
41 calls. Slowest were:
| 120.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 100.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 83.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 14.6b | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
| 14.6b | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
| 14.6b | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
| 0.4b | (* (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)))) |
4 calls. Slowest were:
| 24.0ms | (* (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)))) |
| 5.0ms | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
| 5.0ms | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
4 calls. Slowest were:
| 327.0ms | (* (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)))) |
| 231.0ms | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
| 216.0ms | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
| 187.0ms | (cbrt (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
38 calls. Slowest were:
| 644.0ms | (+ (* 20/3 (/ (* (cbrt 1/2) (exp (* 1/3 (- (log (* 1/60 (sin y))) (* 5 (log (/ 1 x))))))) (pow x 2))) (* (cbrt 1/2) (exp (* 1/3 (- (log (* 1/60 (sin y))) (* 5 (log (/ 1 x)))))))) |
| 463.0ms | (- (+ (* 1/18 (* (cbrt 1/2) (* (pow x 2) (exp (* 1/3 (+ (log 2) (+ (log y) (log x)))))))) (* (cbrt 1/2) (exp (* 1/3 (+ (log 2) (+ (log y) (log x))))))) (* 1/18 (* (cbrt 1/2) (* (exp (* 1/3 (+ (log 2) (+ (log y) (log x))))) (pow y 2))))) |
| 425.0ms | (* (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y)) (* (/ (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) 2) (sin y))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0.0b
0% (0.8b remaining)
Error of 0.8b against oracle of 0.1b and baseline of 0.8b