


Bits error versus x
Results
Initial program 30.8
rmApplied flip--30.9
Applied associate-/l/30.9
Simplified15.0
rmApplied times-frac15.5
Simplified15.3
rmApplied associate-/r*0.2
rmApplied associate-*l/0.1
Final simplification0.1
herbie shell --seed 2019007
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))
Time bar (total: 16.2s)Debug log
1 calls. Slowest were:
| 30.0ms | (/ (- 1 (cos x)) (* x x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.9b
Found 2 expressions with local error:
| 16.5b | (/ (- 1 (cos x)) (* x x)) |
| 1.8b | (- 1 (cos x)) |
2 calls. Slowest were:
| 8.0ms | (/ (- 1 (cos x)) (* x x)) |
| 2.0ms | (- 1 (cos x)) |
2 calls. Slowest were:
| 64.0ms | (/ (- 1 (cos x)) (* x x)) |
| 30.0ms | (- 1 (cos x)) |
19 calls. Slowest were:
| 742.0ms | (/ (* (* (- 1 (cos x)) (- 1 (cos x))) (- 1 (cos x))) (* (* (* x x) (* x x)) (* x x))) |
| 39.0ms | (- (+ (* 1/2 (pow x 2)) (* 1/720 (pow x 6))) (* 1/24 (pow x 4))) |
| 36.0ms | (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))) |
6 alts after pruning (6 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 | (* (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)))) |
| 7.0ms | (* (sin x) (sin x)) |
| 7.0ms | (* (* x x) (+ 1 (cos x))) |
4 calls. Slowest were:
| 68.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 26.0ms | (* (* x x) (+ 1 (cos x))) |
| 16.0ms | (* (sin x) (sin x)) |
| 12.0ms | (+ 1 (cos x)) |
51 calls. Slowest were:
| 1.0s | (* (* (* (* x x) (* x x)) (* x x)) (* (* (+ 1 (cos x)) (+ 1 (cos x))) (+ 1 (cos x)))) |
| 396.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))))) |
| 379.0ms | (- (+ (log (sin x)) (log (sin x))) (log (* (* x x) (+ 1 (cos x))))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 15.9b | (/ (sin x) (* x x)) |
| 0.1b | (* (/ (sin x) (* x x)) (tan (/ x 2))) |
2 calls. Slowest were:
| 15.0ms | (* (/ (sin x) (* x x)) (tan (/ x 2))) |
| 6.0ms | (/ (sin x) (* x x)) |
2 calls. Slowest were:
| 72.0ms | (* (/ (sin x) (* x x)) (tan (/ x 2))) |
| 36.0ms | (/ (sin x) (* x x)) |
34 calls. Slowest were:
| 449.0ms | (* (* (* (/ (sin x) (* x x)) (/ (sin x) (* x x))) (/ (sin x) (* x x))) (* (* (tan (/ x 2)) (tan (/ x 2))) (tan (/ x 2)))) |
| 175.0ms | (/ (* (* (sin x) (sin x)) (sin x)) (* (* (* x x) (* x x)) (* x x))) |
| 175.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 | (* (/ (/ (sin x) x) x) (tan (/ x 2))) |
| 0.1b | (/ (sin x) x) |
| 0.1b | (/ (/ (sin x) x) x) |
3 calls. Slowest were:
| 9.0ms | (* (/ (/ (sin x) x) x) (tan (/ x 2))) |
| 4.0ms | (/ (/ (sin x) x) x) |
| 2.0ms | (/ (sin x) x) |
3 calls. Slowest were:
| 90.0ms | (* (/ (/ (sin x) x) x) (tan (/ x 2))) |
| 26.0ms | (/ (sin x) x) |
| 24.0ms | (/ (/ (sin x) x) x) |
28 calls. Slowest were:
| 353.0ms | (* (* (* (/ (/ (sin x) x) x) (/ (/ (sin x) x) x)) (/ (/ (sin x) x) x)) (* (* (tan (/ x 2)) (tan (/ x 2))) (tan (/ x 2)))) |
| 167.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
| 137.0ms | (/ (* (sin x) (sin (* 1/2 x))) (* (cos (* 1/2 x)) (pow x 2))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b