Error in 17.6s

Runtime

Time bar (total: 17.6s)Debug logProfile

start153.0ms

Algorithm
intervals

setup12.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 39.4b

localize14.0ms

Local error

Found 2 expressions with local error:

4.2b
(cos (+ eps x))
0.8b
(- (cos (+ eps x)) (cos x))

rewrite30.0ms

Algorithm
rewrite-expression-head
Counts
2 → 40
Calls

2 calls. Slowest were:

27.0ms
(- (cos (+ eps x)) (cos x))
2.0ms
(cos (+ eps x))

series77.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

61.0ms
(- (cos (+ eps x)) (cos x))
15.0ms
(cos (+ eps x))

simplify754.0ms

Counts
33 → 46
Calls

33 calls. Slowest were:

173.0ms
(- (* 1/24 (pow eps 4)) (+ (* x eps) (* 1/2 (pow eps 2))))
145.0ms
(- 1 (+ (* x eps) (* 1/2 (pow eps 2))))
36.0ms
(fma (- (cbrt (cos x))) (* (cbrt (cos x)) (cbrt (cos x))) (* (cbrt (cos x)) (* (cbrt (cos x)) (cbrt (cos x)))))

prune517.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.5b

localize22.0ms

Local error

Found 3 expressions with local error:

3.6b
(sin (/ (+ (+ x x) eps) 2))
0.3b
(* (sin (/ (+ (+ x x) eps) 2)) (sin (/ eps 2)))
0.0b
(* -2 (* (sin (/ (+ (+ x x) eps) 2)) (sin (/ eps 2))))

rewrite41.0ms

Algorithm
rewrite-expression-head
Counts
3 → 41
Calls

3 calls. Slowest were:

19.0ms
(* (sin (/ (+ (+ x x) eps) 2)) (sin (/ eps 2)))
14.0ms
(* -2 (* (sin (/ (+ (+ x x) eps) 2)) (sin (/ eps 2))))
7.0ms
(sin (/ (+ (+ x x) eps) 2))

series187.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

89.0ms
(* -2 (* (sin (/ (+ (+ x x) eps) 2)) (sin (/ eps 2))))
68.0ms
(* (sin (/ (+ (+ x x) eps) 2)) (sin (/ eps 2)))
30.0ms
(sin (/ (+ (+ x x) eps) 2))

simplify1.2s

Counts
19 → 50
Calls

19 calls. Slowest were:

471.0ms
(- (+ (* 1/4 (pow eps 2)) (* 1/2 (* x eps))) (* 1/12 (* (pow x 3) eps)))
355.0ms
(- (* 1/6 (* (pow x 3) eps)) (+ (* 1/2 (pow eps 2)) (* x eps)))
89.0ms
(- (+ x (* 1/2 eps)) (* 1/6 (pow x 3)))

prune662.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.4b

localize11.0ms

Local error

Found 2 expressions with local error:

3.6b
(sin (/ (+ (+ x x) eps) 2))
0.3b
(* (* -2 (sin (/ (+ (+ x x) eps) 2))) (sin (/ eps 2)))

rewrite33.0ms

Algorithm
rewrite-expression-head
Counts
2 → 26
Calls

2 calls. Slowest were:

24.0ms
(* (* -2 (sin (/ (+ (+ x x) eps) 2))) (sin (/ eps 2)))
9.0ms
(sin (/ (+ (+ x x) eps) 2))

series137.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

103.0ms
(* (* -2 (sin (/ (+ (+ x x) eps) 2))) (sin (/ eps 2)))
33.0ms
(sin (/ (+ (+ x x) eps) 2))

simplify894.0ms

Counts
12 → 32
Calls

12 calls. Slowest were:

330.0ms
(- (* 1/6 (* (pow x 3) eps)) (+ (* 1/2 (pow eps 2)) (* x eps)))
279.0ms
(* (* (* (* -2 (sin (/ (+ (+ x x) eps) 2))) (* -2 (sin (/ (+ (+ x x) eps) 2)))) (* -2 (sin (/ (+ (+ x x) eps) 2)))) (* (* (sin (/ eps 2)) (sin (/ eps 2))) (sin (/ eps 2))))
123.0ms
(- (+ x (* 1/2 eps)) (* 1/6 (pow x 3)))

prune463.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 0.4b

localize31.0ms

Local error

Found 4 expressions with local error:

3.6b
(sin (/ (+ (+ x x) eps) 2))
3.6b
(sin (/ (+ (+ x x) eps) 2))
3.6b
(sin (/ (+ (+ x x) eps) 2))
0.6b
(cbrt (sin (/ (+ (+ x x) eps) 2)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Counts
4 → 40
Calls

4 calls. Slowest were:

9.0ms
(sin (/ (+ (+ x x) eps) 2))
9.0ms
(sin (/ (+ (+ x x) eps) 2))
9.0ms
(sin (/ (+ (+ x x) eps) 2))

series176.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

87.0ms
(cbrt (sin (/ (+ (+ x x) eps) 2)))
35.0ms
(sin (/ (+ (+ x x) eps) 2))
33.0ms
(sin (/ (+ (+ x x) eps) 2))

simplify688.0ms

Counts
15 → 52
Calls

15 calls. Slowest were:

160.0ms
(- (+ (* 1/3 (* x (exp (* 1/3 (- (log 4) (* 2 (log eps))))))) (exp (* 1/3 (+ (log 1/2) (log eps))))) (* 7/81 (* (pow x 2) (exp (* 1/3 (+ (log 1/2) (log eps)))))))
147.0ms
(- (+ x (* 1/2 eps)) (* 1/6 (pow x 3)))
121.0ms
(- (+ x (* 1/2 eps)) (* 1/6 (pow x 3)))

prune830.0ms

Pruning

13 alts after pruning (11 fresh and 2 done)

Merged error: 0.4b

regimes306.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 +o rules:numerics
(FPCore (x eps)
  :name "2cos (problem 3.3.5)"
  (- (cos (+ x eps)) (cos x)))

Backtrace

partition: contract violation expected: list? given: 0.7741419461692506 argument position: 2nd other arguments...: #<procedure:ordinary-value?>LC
partition/home/p92/racket/collects/racket/list.rkt5550
errors-score/data/pavpan/nightlies/herbie/develop/src/points.rkt3220
for-loop/data/pavpan/nightlies/herbie/develop/src/sandbox.rkt7512
(unnamed)/home/p92/racket/collects/racket/private/more-scheme.rkt26128
run/home/p92/racket/share/pkgs/profile-lib/main.rkt392
profile-thunk16/home/p92/racket/share/pkgs/profile-lib/main.rkt90
(unnamed)/home/p92/racket/collects/racket/private/more-scheme.rkt26128