


Bits error versus x



Bits error versus y
Initial program 43.6
Taylor expanded around 0 0.8
Final simplification0.8
herbie shell --seed 2019002
(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:
| 101.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:
| 26.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 11.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 9.0ms | (- (exp x) (exp (- x))) |
4 calls. Slowest were:
| 84.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 82.0ms | (* (/ (+ (exp x) (exp (- x))) 2) (cos y)) |
| 42.0ms | (- (exp x) (exp (- x))) |
| 28.0ms | (+ (exp x) (exp (- x))) |
38 calls. Slowest were:
| 354.0ms | (* 1/2 (* (- (exp x) (exp (- x))) (sin y))) |
| 341.0ms | (* (* (* (/ (- (exp x) (exp (- x))) 2) (/ (- (exp x) (exp (- x))) 2)) (/ (- (exp x) (exp (- x))) 2)) (* (* (sin y) (sin y)) (sin y))) |
| 290.0ms | (* 1/2 (* (- (exp x) (exp (* -1 x))) (sin y))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.1b | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 0.1b | (* 1/3 (pow x 3)) |
| 0.1b | (* 1/60 (pow x 5)) |
| 0.0b | (+ (exp x) (exp (- x))) |
4 calls. Slowest were:
| 12.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 9.0ms | (+ (exp x) (exp (- x))) |
| 1.0ms | (* 1/3 (pow x 3)) |
4 calls. Slowest were:
| 86.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 34.0ms | (+ (exp x) (exp (- x))) |
| 34.0ms | (* 1/60 (pow x 5)) |
| 22.0ms | (* 1/3 (pow x 3)) |
31 calls. Slowest were:
| 150.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 134.0ms | (* (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) (sin y)) |
| 85.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))) |
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:
| 10.0ms | (* (cbrt (sin y)) (cbrt (sin y))) |
| 1.0ms | (cbrt (sin y)) |
| 1.0ms | (cbrt (sin y)) |
4 calls. Slowest were:
| 188.0ms | (cbrt (sin y)) |
| 187.0ms | (* (cbrt (sin y)) (cbrt (sin y))) |
| 178.0ms | (cbrt (sin y)) |
| 147.0ms | (cbrt (sin y)) |
41 calls. Slowest were:
| 87.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 82.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 46.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:
| 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))) |
4 calls. Slowest were:
| 21.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))) |
| 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)))) 2)) |
4 calls. Slowest were:
| 246.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))) |
| 203.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 198.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
| 167.0ms | (cbrt (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2)) |
53 calls. Slowest were:
| 543.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)) |
| 448.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)) |
| 346.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)))))))))) |
13 alts after pruning (11 fresh and 2 done)
Merged error: 0.0b
0% (0.8b remaining)
Error of 0.8b against oracle of 0.1b and baseline of 0.8b