


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
Applied associate-/r*0.3
Simplified0.1
Final simplification0.1
herbie shell --seed 2019008 +o rules:numerics
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))
Time bar (total: 18.9s)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:
| 8.0ms | (/ (- 1 (cos x)) (* x x)) |
| 2.0ms | (- 1 (cos x)) |
2 calls. Slowest were:
| 69.0ms | (/ (- 1 (cos x)) (* x x)) |
| 32.0ms | (- 1 (cos x)) |
19 calls. Slowest were:
| 431.0ms | (/ (* (* (- 1 (cos x)) (- 1 (cos x))) (- 1 (cos x))) (* (* (* x x) (* x x)) (* x x))) |
| 91.0ms | (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))) |
| 85.0ms | (- (+ (* 1/2 (pow x 2)) (* 1/720 (pow x 6))) (* 1/24 (pow x 4))) |
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:
| 17.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 5.0ms | (* (sin x) (sin x)) |
| 4.0ms | (* (* x x) (+ 1 (cos x))) |
4 calls. Slowest were:
| 54.0ms | (/ (* (sin x) (sin x)) (* (* x x) (+ 1 (cos x)))) |
| 34.0ms | (* (* x x) (+ 1 (cos x))) |
| 15.0ms | (* (sin x) (sin x)) |
| 9.0ms | (+ 1 (cos x)) |
51 calls. Slowest were:
| 797.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))))) |
| 483.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))))) |
| 366.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 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:
| 13.0ms | (/ (* (sin x) (sin x)) (* x (* x (+ 1 (cos x))))) |
| 7.0ms | (* (sin x) (sin x)) |
| 2.0ms | (* x (+ 1 (cos x))) |
4 calls. Slowest were:
| 55.0ms | (/ (* (sin x) (sin x)) (* x (* x (+ 1 (cos x))))) |
| 36.0ms | (* x (+ 1 (cos x))) |
| 16.0ms | (* (sin x) (sin x)) |
| 9.0ms | (+ 1 (cos x)) |
44 calls. Slowest were:
| 369.0ms | (- (+ (log (sin x)) (log (sin x))) (log (* x (* x (+ 1 (cos x)))))) |
| 349.0ms | (- (log (* (sin x) (sin x))) (log (* x (* x (+ 1 (cos x)))))) |
| 282.0ms | (/ (pow (sin x) 2) (* (pow x 2) (+ (cos x) 1))) |
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:
| 6.0ms | (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x))) |
| 5.0ms | (/ 1 (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x)))) |
| 4.0ms | (* (sin x) (sin x)) |
4 calls. Slowest were:
| 47.0ms | (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x))) |
| 44.0ms | (/ 1 (/ (* x (* x (+ 1 (cos x)))) (* (sin x) (sin x)))) |
| 23.0ms | (* (sin x) (sin x)) |
| 11.0ms | (+ 1 (cos x)) |
41 calls. Slowest were:
| 519.0ms | (/ (* (pow x 2) (+ (cos x) 1)) (pow (sin x) 2)) |
| 496.0ms | (* x (* x (+ (pow 1 3) (pow (cos x) 3)))) |
| 442.0ms | (/ (* (pow x 2) (+ (cos x) 1)) (pow (sin x) 2)) |
7 alts after pruning (6 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