


Bits error versus x
Results
Initial program 30.8
rmApplied flip--31.0
Applied associate-/l/31.0
Simplified15.6
rmApplied associate-*l*15.7
rmApplied clear-num15.7
rmApplied times-frac0.7
Simplified0.5
Final simplification0.5
herbie shell --seed 2019008
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))
Time bar (total: 19.6s)Debug log
1 calls. Slowest were:
| 29.0ms | (/ (- 1 (cos x)) (* x x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.1b
Found 2 expressions with local error:
| 14.7b | (/ (- 1 (cos x)) (* x x)) |
| 2.2b | (- 1 (cos x)) |
2 calls. Slowest were:
| 4.0ms | (/ (- 1 (cos x)) (* x x)) |
| 1.0ms | (- 1 (cos x)) |
2 calls. Slowest were:
| 65.0ms | (/ (- 1 (cos x)) (* x x)) |
| 18.0ms | (- 1 (cos x)) |
19 calls. Slowest were:
| 374.0ms | (/ (* (* (- 1 (cos x)) (- 1 (cos x))) (- 1 (cos x))) (* (* (* x x) (* x x)) (* x x))) |
| 45.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:
| 14.4b | (/ (* (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:
| 11.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 4.0ms | (* (sin x) (sin x)) |
| 4.0ms | (* (* x x) (+ 1 (cos x))) |
4 calls. Slowest were:
| 61.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 37.0ms | (* (* x x) (+ 1 (cos x))) |
| 25.0ms | (* (sin x) (sin x)) |
| 13.0ms | (+ 1 (cos x)) |
51 calls. Slowest were:
| 1.2s | (* (* (* (* x x) (* x x)) (* x x)) (* (* (+ 1 (cos x)) (+ 1 (cos x))) (+ 1 (cos x)))) |
| 418.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))))) |
| 405.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 (8 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 14.4b | (/ (* (sin x) (sin x)) (* x (* x (+ 1 (cos x))))) |
| 0.4b | (+ 1 (cos x)) |
| 0.2b | (* (sin x) (sin x)) |
| 0.1b | (* x (+ 1 (cos x))) |
4 calls. Slowest were:
| 6.0ms | (/ (* (sin x) (sin x)) (* x (* x (+ 1 (cos x))))) |
| 3.0ms | (* (sin x) (sin x)) |
| 1.0ms | (* x (+ 1 (cos x))) |
4 calls. Slowest were:
| 63.0ms | (/ (* (sin x) (sin x)) (* x (* x (+ 1 (cos x))))) |
| 40.0ms | (* x (+ 1 (cos x))) |
| 16.0ms | (* (sin x) (sin x)) |
| 8.0ms | (+ 1 (cos x)) |
44 calls. Slowest were:
| 319.0ms | (- (+ (log (sin x)) (log (sin x))) (log (* x (* x (+ 1 (cos x)))))) |
| 308.0ms | (- (log (* (sin x) (sin x))) (log (* x (* x (+ 1 (cos x)))))) |
| 275.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)))))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 14.4b | (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x))) |
| 0.4b | (+ 1 (cos x)) |
| 0.2b | (* (sin x) (sin x)) |
| 0.1b | (/ 1 (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x)))) |
4 calls. Slowest were:
| 11.0ms | (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x))) |
| 8.0ms | (* (sin x) (sin x)) |
| 5.0ms | (/ 1 (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x)))) |
4 calls. Slowest were:
| 66.0ms | (/ 1 (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x)))) |
| 64.0ms | (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x))) |
| 24.0ms | (* (sin x) (sin x)) |
| 13.0ms | (+ 1 (cos x)) |
41 calls. Slowest were:
| 557.0ms | (/ (* (pow x 2) (+ (cos x) 1)) (pow (sin x) 2)) |
| 490.0ms | (/ (* (pow x 2) (+ (cos x) 1)) (pow (sin x) 2)) |
| 303.0ms | (* x (* x (- (* 1 1) (* (cos x) (cos x))))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0b
0% (0.5b remaining)
Error of 0.5b against oracle of 0.0b and baseline of 0.5b