


Bits error versus x
Results
Initial program 31.2
rmApplied flip--31.3
Applied associate-/l/31.3
Simplified15.4
rmApplied times-frac15.8
Simplified15.6
rmApplied associate-/r*0.2
rmApplied log1p-expm1-u0.1
Final simplification0.1
herbie shell --seed 2019002 +o rules:numerics
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))
Time bar (total: 16.1s)Debug log
1 calls. Slowest were:
| 14.0ms | (/ (- 1 (cos x)) (* x x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 34.4b
Found 2 expressions with local error:
| 17.9b | (/ (- 1 (cos x)) (* x x)) |
| 1.8b | (- 1 (cos x)) |
2 calls. Slowest were:
| 6.0ms | (/ (- 1 (cos x)) (* x x)) |
| 1.0ms | (- 1 (cos x)) |
2 calls. Slowest were:
| 57.0ms | (/ (- 1 (cos x)) (* x x)) |
| 29.0ms | (- 1 (cos x)) |
19 calls. Slowest were:
| 422.0ms | (/ (* (* (- 1 (cos x)) (- 1 (cos x))) (- 1 (cos x))) (* (* (* x x) (* x x)) (* x x))) |
| 91.0ms | (- (+ (* 1/2 (pow x 2)) (* 1/720 (pow x 6))) (* 1/24 (pow x 4))) |
| 80.0ms | (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 17.6b | (/ (* (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:
| 17.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:
| 65.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 23.0ms | (* (* x x) (+ 1 (cos x))) |
| 22.0ms | (* (sin x) (sin x)) |
| 8.0ms | (+ 1 (cos x)) |
51 calls. Slowest were:
| 458.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))))) |
| 447.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))))) |
| 364.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))))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 17.1b | (/ (sin x) (* x x)) |
| 0.2b | (* (/ (sin x) (* x x)) (tan (/ x 2))) |
2 calls. Slowest were:
| 16.0ms | (* (/ (sin x) (* x x)) (tan (/ x 2))) |
| 6.0ms | (/ (sin x) (* x x)) |
2 calls. Slowest were:
| 98.0ms | (* (/ (sin x) (* x x)) (tan (/ x 2))) |
| 33.0ms | (/ (sin x) (* x x)) |
34 calls. Slowest were:
| 556.0ms | (* (* (* (/ (sin x) (* x x)) (/ (sin x) (* x x))) (/ (sin x) (* x x))) (* (* (tan (/ x 2)) (tan (/ x 2))) (tan (/ x 2)))) |
| 228.0ms | (/ (* (* (sin x) (sin x)) (sin x)) (* (* (* x x) (* x x)) (* x x))) |
| 195.0ms | (+ (- (log (sin x)) (log (* x x))) (log (tan (/ x 2)))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.2b | (* (/ (/ (sin x) x) x) (tan (/ x 2))) |
| 0.1b | (/ (sin x) x) |
| 0.1b | (/ (/ (sin x) x) x) |
3 calls. Slowest were:
| 13.0ms | (* (/ (/ (sin x) x) x) (tan (/ x 2))) |
| 4.0ms | (/ (/ (sin x) x) x) |
| 2.0ms | (/ (sin x) x) |
3 calls. Slowest were:
| 77.0ms | (* (/ (/ (sin x) x) x) (tan (/ x 2))) |
| 33.0ms | (/ (/ (sin x) x) x) |
| 21.0ms | (/ (sin x) x) |
28 calls. Slowest were:
| 339.0ms | (* (* (* (/ (/ (sin x) x) x) (/ (/ (sin x) x) x)) (/ (/ (sin x) x) x)) (* (* (tan (/ x 2)) (tan (/ x 2))) (tan (/ x 2)))) |
| 142.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
| 141.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
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