


Bits error versus x
Results
Initial program 30.5
rmApplied flip--30.6
Applied associate-/l/30.6
Simplified14.9
rmApplied associate-/r*14.9
rmApplied *-un-lft-identity14.9
Applied times-frac0.3
Applied times-frac0.3
Simplified0.3
Simplified0.1
rmApplied tan-quot0.1
Applied associate-/l/0.2
Final simplification0.2
herbie shell --seed 1137770271
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))
Time bar (total: 28.1s)Debug log
| 58× | 88.0ms | (body real 2560) |
| 35× | 34.0ms | (body real 1280) |
| 46× | 34.0ms | (body real 640) |
| 36× | 19.0ms | (body real 320) |
| 69× | 12.0ms | (body real 80) |
| 256× | 6.0ms | (pre true 80) |
| 12× | 4.0ms | (body real 160) |
| 30.0ms | (/ (- 1 (cos x)) (* x x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 34.0b
Found 2 expressions with local error:
| 16.8b | (/ (- 1 (cos x)) (* x x)) |
| 1.2b | (- 1 (cos x)) |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | associate-/l* |
| 3× | times-frac |
| 2× | associate-/l/ |
| 2× | add-log-exp |
| 2× | flip-- |
| 2× | flip3-- |
| 2× | pow1 |
| 1× | div-inv |
| 1× | div-exp |
| 1× | div-sub |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 30.0ms | (/ (- 1 (cos x)) (* x x)) |
| 2.0ms | (- 1 (cos x)) |
| 62.0ms | (/ (- 1 (cos x)) (* x x)) |
| 36.0ms | (- 1 (cos x)) |
| 548.0ms | (/ (* (* (- 1 (cos x)) (- 1 (cos x))) (- 1 (cos x))) (* (* (* x x) (* x x)) (* x x))) |
| 84.0ms | (- (+ (* 1/2 (pow x 2)) (* 1/720 (pow x 6))) (* 1/24 (pow x 4))) |
| 84.0ms | (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))) |
| 43.0ms | (- (log (- 1 (cos x))) (log (* x x))) |
| 32.0ms | (/ (- 1 (cos x)) (pow x 2)) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 16.5b | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 0.3b | (+ 1 (cos x)) |
| 0.3b | (* (* x x) (+ 1 (cos x))) |
| 0.3b | (* (sin x) (sin x)) |
| 20× | add-exp-log |
| 20× | add-cbrt-cube |
| 11× | pow1 |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | cbrt-unprod |
| 6× | prod-exp |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | associate-*r/ |
| 4× | associate-*l* |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 3× | flip-+ |
| 3× | flip3-+ |
| 2× | sin-mult |
| 2× | sqr-sin |
| 2× | *-commutative |
| 2× | associate-/r/ |
| 2× | pow-prod-down |
| 1× | associate-/l/ |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | pow-prod-up |
| 1× | div-sub |
| 1× | pow-plus |
| 1× | times-frac |
| 1× | distribute-lft-in |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | distribute-rgt-in |
| 1× | pow2 |
| 20.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 9.0ms | (* (* x x) (+ 1 (cos x))) |
| 9.0ms | (* (sin x) (sin x)) |
| 2.0ms | (+ 1 (cos x)) |
| 84.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 49.0ms | (* (* x x) (+ 1 (cos x))) |
| 34.0ms | (* (sin x) (sin x)) |
| 18.0ms | (+ 1 (cos x)) |
| 1.4s | (* (* (* (* x x) (* x x)) (* x x)) (* (* (+ 1 (cos x)) (+ 1 (cos x))) (+ 1 (cos x)))) |
| 609.0ms | (/ (* (* (* (sin x) (sin x)) (sin x)) (* (* (sin x) (sin x)) (sin x))) (* (* (* (* x x) (+ 1 (cos x))) (* (* x x) (+ 1 (cos x)))) (* (* x x) (+ 1 (cos x))))) |
| 524.0ms | (/ (* (* (* (sin x) (sin x)) (* (sin x) (sin x))) (* (sin x) (sin x))) (* (* (* (* x x) (+ 1 (cos x))) (* (* x x) (+ 1 (cos x)))) (* (* x x) (+ 1 (cos x))))) |
| 501.0ms | (- (+ (log (sin x)) (log (sin x))) (log (* (* x x) (+ 1 (cos x))))) |
| 488.0ms | (- (+ (log (sin x)) (log (sin x))) (+ (log (* x x)) (log (+ 1 (cos x))))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 16.6b | (/ (* (sin x) (sin x)) (* x x)) |
| 0.3b | (+ 1 (cos x)) |
| 0.3b | (* (sin x) (sin x)) |
| 0.1b | (/ (/ (* (sin x) (sin x)) (* x x)) (+ 1 (cos x))) |
| 20× | add-exp-log |
| 20× | add-cbrt-cube |
| 20× | times-frac |
| 16× | add-cube-cbrt |
| 16× | *-un-lft-identity |
| 16× | add-sqr-sqrt |
| 9× | pow1 |
| 7× | div-exp |
| 7× | cbrt-undiv |
| 6× | associate-/l* |
| 6× | div-inv |
| 4× | add-log-exp |
| 4× | associate-/r* |
| 3× | sqr-sin |
| 3× | cbrt-unprod |
| 3× | prod-exp |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | div-sub |
| 2× | associate-/l/ |
| 2× | sin-mult |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | pow-plus |
| 1× | +-commutative |
| 1× | pow2 |
| 18.0ms | (/ (/ (* (sin x) (sin x)) (* x x)) (+ 1 (cos x))) |
| 15.0ms | (/ (* (sin x) (sin x)) (* x x)) |
| 9.0ms | (* (sin x) (sin x)) |
| 2.0ms | (+ 1 (cos x)) |
| 83.0ms | (/ (/ (* (sin x) (sin x)) (* x x)) (+ 1 (cos x))) |
| 57.0ms | (/ (* (sin x) (sin x)) (* x x)) |
| 31.0ms | (* (sin x) (sin x)) |
| 17.0ms | (+ 1 (cos x)) |
| 503.0ms | (- (log (/ (* (sin x) (sin x)) (* x x))) (log (+ 1 (cos x)))) |
| 322.0ms | (/ (pow (sin x) 2) (* (pow x 2) (+ (cos x) 1))) |
| 321.0ms | (/ (pow (sin x) 2) (* (pow x 2) (+ (cos x) 1))) |
| 311.0ms | (/ (/ (* (* (* (sin x) (sin x)) (* (sin x) (sin x))) (* (sin x) (sin x))) (* (* (* x x) (* x x)) (* x x))) (* (* (+ 1 (cos x)) (+ 1 (cos x))) (+ 1 (cos x)))) |
| 301.0ms | (/ (/ (* (* (* (sin x) (sin x)) (sin x)) (* (* (sin x) (sin x)) (sin x))) (* (* (* x x) (* x x)) (* x x))) (* (* (+ 1 (cos x)) (+ 1 (cos x))) (+ 1 (cos x)))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.1b | (/ (sin x) x) |
| 0.1b | (/ (tan (/ x 2)) x) |
| 0.1b | (* (/ (sin x) x) (/ (tan (/ x 2)) x)) |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | associate-/l* |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 5× | pow1 |
| 4× | div-inv |
| 4× | associate-*l* |
| 4× | associate-*r* |
| 3× | add-log-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | associate-/l/ |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | tan-quot |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | frac-times |
| 17.0ms | (* (/ (sin x) x) (/ (tan (/ x 2)) x)) |
| 8.0ms | (/ (tan (/ x 2)) x) |
| 6.0ms | (/ (sin x) x) |
| 121.0ms | (* (/ (sin x) x) (/ (tan (/ x 2)) x)) |
| 70.0ms | (/ (tan (/ x 2)) x) |
| 42.0ms | (/ (sin x) x) |
| 708.0ms | (* (* (* (/ (sin x) x) (/ (sin x) x)) (/ (sin x) x)) (* (* (/ (tan (/ x 2)) x) (/ (tan (/ x 2)) x)) (/ (tan (/ x 2)) x))) |
| 255.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
| 235.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
| 128.0ms | (+ (log (/ (sin x) x)) (log (/ (tan (/ x 2)) x))) |
| 84.0ms | (- (+ (* 1/120 (pow x 4)) 1) (* 1/6 (pow x 2))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 0.2b
| 1573× | 2.6s | (body real 2560) |
| 1470× | 1.6s | (body real 640) |
| 1203× | 1.3s | (body real 1280) |
| 991× | 652.0ms | (body real 320) |
| 2267× | 454.0ms | (body real 80) |
| 496× | 215.0ms | (body real 160) |
| 8000× | 207.0ms | (pre true 80) |