


Bits error versus x



Bits error versus y
Initial program 43.7
Taylor expanded around 0 0.8
Final simplification0.8
herbie shell --seed 2019005
(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: 24.3s)Debug log
1 calls. Slowest were:
| 126.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.0b
Found 3 expressions with local error:
| 57.2b | (- (exp x) (exp (- x))) |
| 0.1b | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 0.0b | (+ (exp x) (exp (- x))) |
3 calls. Slowest were:
| 10.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 6.0ms | (- (exp x) (exp (- x))) |
| 4.0ms | (+ (exp x) (exp (- x))) |
3 calls. Slowest were:
| 96.0ms | (* (/ (- (exp x) (exp (- x))) 2) (sin y)) |
| 50.0ms | (- (exp x) (exp (- x))) |
| 32.0ms | (+ (exp x) (exp (- x))) |
25 calls. Slowest were:
| 375.0ms | (* (* (* (/ (- (exp x) (exp (- x))) 2) (/ (- (exp x) (exp (- x))) 2)) (/ (- (exp x) (exp (- x))) 2)) (* (* (sin y) (sin y)) (sin y))) |
| 315.0ms | (* 1/2 (* (- (exp x) (exp (* -1 x))) (sin y))) |
| 293.0ms | (* 1/2 (* (- (exp x) (exp (- x))) (sin y))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.2b | (* 1/3 (pow x 3)) |
| 0.1b | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 0.1b | (* 1/60 (pow x 5)) |
| 0.0b | (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) |
4 calls. Slowest were:
| 23.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 7.0ms | (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) |
| 3.0ms | (* 1/3 (pow x 3)) |
4 calls. Slowest were:
| 85.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 66.0ms | (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5))) |
| 27.0ms | (* 1/3 (pow x 3)) |
| 20.0ms | (* 1/60 (pow x 5)) |
30 calls. Slowest were:
| 148.0ms | (* (/ (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 144.0ms | (* (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) (sin y)) |
| 86.0ms | (+ (* 1/120 (* (pow x 5) (sin y))) (* 1/6 (* (pow x 3) (sin y)))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 21.2b | (log (exp (* 1/3 (pow x 3)))) |
| 0.2b | (* 1/3 (pow x 3)) |
| 0.1b | (* (/ (+ (* 2 x) (+ (log (exp (* 1/3 (pow x 3)))) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 0.1b | (* 1/60 (pow x 5)) |
4 calls. Slowest were:
| 29.0ms | (* (/ (+ (* 2 x) (+ (log (exp (* 1/3 (pow x 3)))) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 2.0ms | (* 1/60 (pow x 5)) |
| 2.0ms | (log (exp (* 1/3 (pow x 3)))) |
4 calls. Slowest were:
| 99.0ms | (* (/ (+ (* 2 x) (+ (log (exp (* 1/3 (pow x 3)))) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 34.0ms | (* 1/60 (pow x 5)) |
| 28.0ms | (log (exp (* 1/3 (pow x 3)))) |
| 28.0ms | (* 1/3 (pow x 3)) |
33 calls. Slowest were:
| 138.0ms | (* (/ (+ (* 2 x) (+ (log (exp (* 1/3 (pow x 3)))) (* 1/60 (pow x 5)))) 2) (sin y)) |
| 135.0ms | (* (+ (* 2 x) (+ (log (exp (* 1/3 (pow x 3)))) (* 1/60 (pow x 5)))) (sin y)) |
| 92.0ms | (+ (log (/ (+ (* 2 x) (+ (log (exp (* 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.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:
| 195.0ms | (cbrt (sin y)) |
| 178.0ms | (* (cbrt (sin y)) (cbrt (sin y))) |
| 172.0ms | (cbrt (sin y)) |
| 128.0ms | (cbrt (sin y)) |
41 calls. Slowest were:
| 88.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 86.0ms | (- (pow y 1/3) (+ (* 1/18 (pow (pow y 7) 1/3)) (* 1/3240 (pow (pow y 13) 1/3)))) |
| 52.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 (10 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