


Bits error versus x
Results
Initial program 30.9
rmApplied flip--31.0
Applied associate-/l/31.0
Simplified15.4
Taylor expanded around -inf 15.4
Simplified15.6
rmApplied *-un-lft-identity15.6
Applied times-frac0.5
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019005
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))
Time bar (total: 22.1s)Debug log
1 calls. Slowest were:
| 26.0ms | (/ (- 1 (cos x)) (* x x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.8b
Found 2 expressions with local error:
| 15.5b | (/ (- 1 (cos x)) (* x x)) |
| 1.6b | (- 1 (cos x)) |
2 calls. Slowest were:
| 4.0ms | (/ (- 1 (cos x)) (* x x)) |
| 1.0ms | (- 1 (cos x)) |
2 calls. Slowest were:
| 57.0ms | (/ (- 1 (cos x)) (* x x)) |
| 21.0ms | (- 1 (cos x)) |
19 calls. Slowest were:
| 300.0ms | (/ (* (* (- 1 (cos x)) (- 1 (cos x))) (- 1 (cos x))) (* (* (* x x) (* x x)) (* x x))) |
| 69.0ms | (- (+ (* 1/2 (pow x 2)) (* 1/720 (pow x 6))) (* 1/24 (pow x 4))) |
| 66.0ms | (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 15.3b | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 0.4b | (+ 1 (cos x)) |
| 0.2b | (* (sin x) (sin x)) |
| 0.1b | (* (* x x) (+ 1 (cos x))) |
4 calls. Slowest were:
| 16.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 8.0ms | (* (sin x) (sin x)) |
| 7.0ms | (* (* x x) (+ 1 (cos x))) |
4 calls. Slowest were:
| 40.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 28.0ms | (* (* x x) (+ 1 (cos x))) |
| 25.0ms | (* (sin x) (sin x)) |
| 8.0ms | (+ 1 (cos x)) |
51 calls. Slowest were:
| 1.5s | (* (* (* (* x x) (* x x)) (* x x)) (* (* (+ 1 (cos x)) (+ 1 (cos x))) (+ 1 (cos x)))) |
| 411.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))))) |
| 374.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))))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 15.0b | (/ (* x x) (sin x)) |
| 0.2b | (/ (tan (/ x 2)) (/ (* x x) (sin x))) |
2 calls. Slowest were:
| 9.0ms | (/ (tan (/ x 2)) (/ (* x x) (sin x))) |
| 5.0ms | (/ (* x x) (sin x)) |
2 calls. Slowest were:
| 70.0ms | (/ (tan (/ x 2)) (/ (* x x) (sin x))) |
| 32.0ms | (/ (* x x) (sin x)) |
74 calls. Slowest were:
| 849.0ms | (/ (* (* (tan (/ x 2)) (tan (/ x 2))) (tan (/ x 2))) (* (* (/ (* x x) (sin x)) (/ (* x x) (sin x))) (/ (* x x) (sin x)))) |
| 181.0ms | (/ (* (* (* x x) (* x x)) (* x x)) (* (* (sin x) (sin x)) (sin x))) |
| 139.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
6 alts after pruning (5 fresh and 1 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))) |
3 calls. Slowest were:
| 6.0ms | (/ (/ (tan (/ x 2)) (/ x 1)) (/ x (sin x))) |
| 4.0ms | (/ (tan (/ x 2)) (/ x 1)) |
| 0.0ms | (/ x (sin x)) |
3 calls. Slowest were:
| 55.0ms | (/ (/ (tan (/ x 2)) (/ x 1)) (/ x (sin x))) |
| 33.0ms | (/ (tan (/ x 2)) (/ x 1)) |
| 22.0ms | (/ x (sin x)) |
207 calls. Slowest were:
| 661.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)))) |
| 218.0ms | (/ (/ (* (cbrt (tan (/ x 2))) (cbrt (tan (/ x 2)))) (* (cbrt (/ x 1)) (cbrt (/ x 1)))) (* (cbrt (/ x (sin x))) (cbrt (/ x (sin x))))) |
| 181.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b