


Bits error versus x
Results
Initial program 30.5
rmApplied flip--30.6
Applied associate-/l/30.6
Simplified15.2
Taylor expanded around -inf 15.2
Simplified15.4
rmApplied *-un-lft-identity15.4
Applied times-frac0.5
Applied associate-/r*0.1
rmApplied div-inv0.2
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 323378853
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))
Time bar (total: 34.8s)Debug log
| 74.0ms | 50× | body | 2560 | valid |
| 42.0ms | 42× | body | 1280 | valid |
| 39.0ms | 54× | body | 640 | valid |
| 15.0ms | 28× | body | 320 | valid |
| 11.0ms | 62× | body | 80 | valid |
| 7.0ms | 20× | body | 160 | valid |
| 33.0ms | (/ (- 1 (cos x)) (* x x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 31.3b
Found 2 expressions with local error:
| 15.2b | (/ (- 1 (cos x)) (* x x)) |
| 1.5b | (- 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 |
| 9.0ms | (/ (- 1 (cos x)) (* x x)) |
| 2.0ms | (- 1 (cos x)) |
| 61.0ms | (/ (- 1 (cos x)) (* x x)) |
| 36.0ms | (- 1 (cos x)) |
| 527.0ms | (/ (* (* (- 1 (cos x)) (- 1 (cos x))) (- 1 (cos x))) (* (* (* x x) (* x x)) (* x x))) |
| 82.0ms | (- (+ (* 1/2 (pow x 2)) (* 1/720 (pow x 6))) (* 1/24 (pow x 4))) |
| 79.0ms | (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))) |
| 49.0ms | (- (log (- 1 (cos x))) (log (* x x))) |
| 35.0ms | (/ (- 1 (cos x)) (pow x 2)) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 15.0b | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 0.5b | (+ 1 (cos x)) |
| 0.2b | (* (sin x) (sin x)) |
| 0.1b | (* (* x x) (+ 1 (cos 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))) |
| 8.0ms | (* (sin x) (sin x)) |
| 2.0ms | (+ 1 (cos x)) |
| 81.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 41.0ms | (* (* x x) (+ 1 (cos x))) |
| 31.0ms | (* (sin x) (sin x)) |
| 21.0ms | (+ 1 (cos x)) |
| 1.4s | (* (* (* (* x x) (* x x)) (* x x)) (* (* (+ 1 (cos x)) (+ 1 (cos x))) (+ 1 (cos x)))) |
| 619.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))))) |
| 552.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))))) |
| 499.0ms | (- (+ (log (sin x)) (log (sin x))) (log (* (* x x) (+ 1 (cos x))))) |
| 485.0ms | (- (+ (log (sin x)) (log (sin x))) (+ (log (* x x)) (log (+ 1 (cos x))))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 14.2b | (/ (* x x) (sin x)) |
| 0.5b | (/ (tan (/ x 2)) (/ (* x x) (sin x))) |
| 36× | times-frac |
| 20× | add-cube-cbrt |
| 20× | *-un-lft-identity |
| 20× | add-sqr-sqrt |
| 10× | associate-/r* |
| 9× | add-exp-log |
| 9× | add-cbrt-cube |
| 6× | div-inv |
| 4× | associate-/l* |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 2× | add-log-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | pow1 |
| 1× | associate-/l/ |
| 1× | associate-/r/ |
| 1× | tan-quot |
| 12.0ms | (/ (tan (/ x 2)) (/ (* x x) (sin x))) |
| 7.0ms | (/ (* x x) (sin x)) |
| 118.0ms | (/ (tan (/ x 2)) (/ (* x x) (sin x))) |
| 53.0ms | (/ (* x x) (sin x)) |
| 1.1s | (/ (* (* (tan (/ x 2)) (tan (/ x 2))) (tan (/ x 2))) (* (* (/ (* x x) (sin x)) (/ (* x x) (sin x))) (/ (* x x) (sin x)))) |
| 362.0ms | (/ (* (* (* x x) (* x x)) (* x x)) (* (* (sin x) (sin x)) (sin x))) |
| 260.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
| 241.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
| 152.0ms | (- (log (tan (/ x 2))) (- (log (* x x)) (log (sin x)))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.1b | (/ (tan (/ x 2)) (/ x 1)) |
| 0.1b | (/ x (sin x)) |
| 0.1b | (/ (/ (tan (/ x 2)) (/ x 1)) (/ x (sin x))) |
| 140× | times-frac |
| 71× | add-cube-cbrt |
| 71× | *-un-lft-identity |
| 71× | add-sqr-sqrt |
| 45× | div-inv |
| 20× | associate-/l* |
| 11× | associate-/r* |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 7× | associate-/r/ |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 3× | add-log-exp |
| 3× | frac-2neg |
| 3× | clear-num |
| 3× | pow1 |
| 2× | associate-/l/ |
| 1× | tan-quot |
| 15.0ms | (/ (/ (tan (/ x 2)) (/ x 1)) (/ x (sin x))) |
| 11.0ms | (/ (tan (/ x 2)) (/ x 1)) |
| 1.0ms | (/ x (sin x)) |
| 117.0ms | (/ (/ (tan (/ x 2)) (/ x 1)) (/ x (sin x))) |
| 76.0ms | (/ (tan (/ x 2)) (/ x 1)) |
| 48.0ms | (/ x (sin x)) |
| 990.0ms | (/ (* (* (/ (tan (/ x 2)) (/ x 1)) (/ (tan (/ x 2)) (/ x 1))) (/ (tan (/ x 2)) (/ x 1))) (* (* (/ x (sin x)) (/ x (sin x))) (/ x (sin x)))) |
| 376.0ms | (/ (/ (* (cbrt (tan (/ x 2))) (cbrt (tan (/ x 2)))) (* (cbrt (/ x 1)) (cbrt (/ x 1)))) (* (cbrt (/ x (sin x))) (cbrt (/ x (sin x))))) |
| 364.0ms | (- (- (log (tan (/ x 2))) (log (/ x 1))) (log (/ x (sin x)))) |
| 318.0ms | (/ (* (* (tan (/ x 2)) (tan (/ x 2))) (tan (/ x 2))) (* (* (/ x 1) (/ x 1)) (/ x 1))) |
| 312.0ms | (/ (/ (* (cbrt (tan (/ x 2))) (cbrt (tan (/ x 2)))) (* (cbrt (/ x 1)) (cbrt (/ x 1)))) 1) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b
| 3.1s | 1564× | body | 2560 | valid |
| 1.4s | 1241× | body | 1280 | valid |
| 1.2s | 1539× | body | 640 | valid |
| 634.0ms | 938× | body | 320 | valid |
| 486.0ms | 2241× | body | 80 | valid |
| 179.0ms | 477× | body | 160 | valid |