



Bits error versus x
Results
| Original | 30.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 30.0
Taylor expanded around 0 0.6
Final simplification0.6
herbie shell --seed 2019010
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:herbie-target
(* 4 (pow (sinh (/ x 2)) 2))
(+ (- (exp x) 2) (exp (- x))))
Time bar (total: 20.5s)Debug log
| 40.0ms | (+ (- (exp x) 2) (exp (- x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 29.6b
Found 2 expressions with local error:
| 4.3b | (+ (- (exp x) 2) (exp (- x))) |
| 0.0b | (- (exp x) 2) |
| 4× | add-log-exp |
| 4× | frac-add |
| 4× | *-un-lft-identity |
| 3× | flip-- |
| 3× | flip3-- |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | exp-diff |
| 2× | add-cbrt-cube |
| 2× | sub-neg |
| 2× | associate-+l+ |
| 2× | pow1 |
| 2× | exp-neg |
| 2× | add-sqr-sqrt |
| 2× | neg-sub0 |
| 1× | distribute-lft-out |
| 1× | flip-+ |
| 1× | associate-+l- |
| 1× | flip3-+ |
| 1× | sum-log |
| 1× | +-commutative |
| 12.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 3.0ms | (- (exp x) 2) |
| 99.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 15.0ms | (- (exp x) 2) |
| 351.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp 0))) |
| 285.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) 1)) |
| 193.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) 1)) |
| 172.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) (exp 0))) |
| 122.0ms | (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.1b | (* 1/12 (pow x 4)) |
| 0.1b | (* 1/360 (pow x 6)) |
| 0.0b | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 0.0b | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 11× | add-log-exp |
| 8× | *-un-lft-identity |
| 6× | add-cube-cbrt |
| 6× | associate-*r* |
| 6× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | sum-log |
| 4× | pow1 |
| 2× | flip-+ |
| 2× | *-commutative |
| 2× | flip3-+ |
| 2× | +-commutative |
| 1× | distribute-lft-out |
| 1× | associate-+r+ |
| 13.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 6.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 2.0ms | (* 1/12 (pow x 4)) |
| 2.0ms | (* 1/360 (pow x 6)) |
| 59.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 39.0ms | (* 1/360 (pow x 6)) |
| 27.0ms | (* 1/12 (pow x 4)) |
| 26.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 63.0ms | (* (exp (pow x 2)) (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 34.0ms | (* (exp (pow x 2)) (* (exp (* 1/12 (pow x 4))) (exp (* 1/360 (pow x 6))))) |
| 26.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 25.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 17.0ms | (* (exp (* 1/12 (pow x 4))) (exp (* 1/360 (pow x 6)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 29.1b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 29.1b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 0.1b | (* 1/12 (pow x 4)) |
| 0.1b | (* 1/12 (pow x 4)) |
| 12× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 8× | sqrt-prod |
| 8× | add-cube-cbrt |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | sqrt-div |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 2× | distribute-lft-out |
| 2× | flip-+ |
| 2× | *-commutative |
| 2× | pow1/2 |
| 2× | flip3-+ |
| 2× | rem-sqrt-square |
| 12.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 8.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 2.0ms | (* 1/12 (pow x 4)) |
| 2.0ms | (* 1/12 (pow x 4)) |
| 75.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 64.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 23.0ms | (* 1/12 (pow x 4)) |
| 15.0ms | (* 1/12 (pow x 4)) |
| 277.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
| 277.0ms | (- (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x))) (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360)))))) |
| 259.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
| 231.0ms | (- (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x))) (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360)))))) |
| 209.0ms | (sqrt (- (* (pow x 2) (pow x 2)) (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 29.1b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 29.1b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 29.1b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 0.5b | (* (sqrt (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) (sqrt (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))) |
| 34× | sqrt-prod |
| 30× | sqrt-div |
| 23× | *-un-lft-identity |
| 16× | add-sqr-sqrt |
| 13× | add-cube-cbrt |
| 10× | associate-*l* |
| 10× | associate-*r* |
| 9× | flip-+ |
| 9× | flip3-+ |
| 9× | pow1 |
| 7× | pow1/2 |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | distribute-lft-out |
| 4× | add-log-exp |
| 4× | frac-times |
| 3× | rem-sqrt-square |
| 2× | pow-prod-up |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | sqrt-unprod |
| 1× | pow-plus |
| 1× | rem-square-sqrt |
| 1× | pow2 |
| 27.0ms | (* (sqrt (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) (sqrt (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))) |
| 8.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 8.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 7.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 69.0ms | (* (sqrt (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) (sqrt (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))) |
| 56.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 49.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 43.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 478.0ms | (* (sqrt (sqrt (- (* (pow x 2) (pow x 2)) (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))) (sqrt (sqrt (+ (pow (pow x 2) 3) (pow (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) 3))))) |
| 407.0ms | (* (sqrt (sqrt (+ (* (pow x 2) (pow x 2)) (- (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (* (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))))) (sqrt (sqrt (+ (* (pow x 2) (pow x 2)) (- (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (* (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))))) |
| 372.0ms | (* (sqrt (sqrt (+ (pow (pow x 2) 3) (pow (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) 3)))) (sqrt (sqrt (- (* (pow x 2) (pow x 2)) (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))))) |
| 365.0ms | (sqrt (sqrt (+ (* (pow x 2) (pow x 2)) (- (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (* (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))))) |
| 319.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
0% (0.0b remaining)
Error of 0.6b against oracle of 0.6b and baseline of 0.6b