Error in 37.9s

Runtime

Time bar (total: 37.9s)Debug logProfile

start630.0ms

Algorithm
intervals

setup13.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.9b

localize15.0ms

Local error

Found 2 expressions with local error:

4.3b
(tan (+ eps x))
1.0b
(- (tan (+ eps x)) (tan x))

rewrite10.0ms

Algorithm
rewrite-expression-head
Counts
2 → 25
Calls

2 calls. Slowest were:

8.0ms
(- (tan (+ eps x)) (tan x))
1.0ms
(tan (+ eps x))

series578.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

444.0ms
(tan (+ eps x))
133.0ms
(- (tan (+ eps x)) (tan x))

simplify626.0ms

Counts
15 → 31
Calls

15 calls. Slowest were:

238.0ms
(- (* (+ (tan eps) (tan x)) (cos x)) (* (- 1 (* (tan eps) (tan x))) (sin x)))
154.0ms
(* (- 1 (* (tan eps) (tan x))) (cos x))
127.0ms
(+ (* x (pow eps 2)) (+ (* 1/3 (pow eps 3)) eps))

prune285.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 12.7b

localize36.0ms

Local error

Found 4 expressions with local error:

2.6b
(- (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) (tan x))
0.2b
(* (tan eps) (tan x))
0.1b
(+ (tan eps) (tan x))
0.1b
(/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x))))

rewrite65.0ms

Algorithm
rewrite-expression-head
Counts
4 → 85
Calls

4 calls. Slowest were:

45.0ms
(- (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) (tan x))
11.0ms
(/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x))))
4.0ms
(* (tan eps) (tan x))

series891.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

443.0ms
(- (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) (tan x))
222.0ms
(/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x))))
118.0ms
(* (tan eps) (tan x))

simplify2.9s

Counts
72 → 97
Calls

72 calls. Slowest were:

349.0ms
(+ (* 1/3 (* (pow x 3) eps)) (+ (* 1/3 (* x (pow eps 3))) (* x eps)))
291.0ms
(- (+ (/ (sin eps) (* (cos eps) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))))) (/ (sin x) (* (cos x) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))))) (/ (sin x) (cos x)))
262.0ms
(- (+ (/ (sin eps) (* (cos eps) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))))) (/ (sin x) (* (cos x) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))))) (/ (sin x) (cos x)))

prune1.3s

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 12.6b

localize9.0ms

Local error

Found 4 expressions with local error:

2.6b
(- (* (+ (tan eps) (tan x)) (/ 1 (- 1 (* (tan eps) (tan x))))) (tan x))
0.2b
(* (tan eps) (tan x))
0.1b
(* (+ (tan eps) (tan x)) (/ 1 (- 1 (* (tan eps) (tan x)))))
0.1b
(+ (tan eps) (tan x))

rewrite31.0ms

Algorithm
rewrite-expression-head
Counts
4 → 83
Calls

4 calls. Slowest were:

11.0ms
(* (+ (tan eps) (tan x)) (/ 1 (- 1 (* (tan eps) (tan x)))))
8.0ms
(- (* (+ (tan eps) (tan x)) (/ 1 (- 1 (* (tan eps) (tan x))))) (tan x))
6.0ms
(+ (tan eps) (tan x))

series933.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

448.0ms
(- (* (+ (tan eps) (tan x)) (/ 1 (- 1 (* (tan eps) (tan x))))) (tan x))
277.0ms
(* (+ (tan eps) (tan x)) (/ 1 (- 1 (* (tan eps) (tan x)))))
112.0ms
(* (tan eps) (tan x))

simplify7.6s

Counts
68 → 95
Calls

68 calls. Slowest were:

631.0ms
(* (* (* (+ (tan eps) (tan x)) (+ (tan eps) (tan x))) (+ (tan eps) (tan x))) (* (* (/ 1 (- 1 (* (tan eps) (tan x)))) (/ 1 (- 1 (* (tan eps) (tan x))))) (/ 1 (- 1 (* (tan eps) (tan x))))))
379.0ms
(- (* (* (+ (pow (tan eps) 3) (pow (tan x) 3)) 1) (cos x)) (* (* (+ (* (tan eps) (tan eps)) (- (* (tan x) (tan x)) (* (tan eps) (tan x)))) (- 1 (* (tan eps) (tan x)))) (sin x)))
354.0ms
(* (- (* (tan eps) (tan eps)) (* (tan x) (tan x))) (/ 1 (- 1 (* (tan eps) (tan x)))))

prune1.2s

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 11.9b

localize43.0ms

Local error

Found 4 expressions with local error:

8.2b
(- (* (+ (tan x) (tan eps)) (cos x)) (sin x))
0.2b
(* (tan x) (tan eps))
0.2b
(* (tan eps) (tan x))
0.2b
(* (sin x) (* (tan x) (tan eps)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Counts
4 → 73
Calls

4 calls. Slowest were:

16.0ms
(- (* (+ (tan x) (tan eps)) (cos x)) (sin x))
10.0ms
(* (sin x) (* (tan x) (tan eps)))
9.0ms
(* (tan eps) (tan x))

series514.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

143.0ms
(* (sin x) (* (tan x) (tan eps)))
142.0ms
(- (* (+ (tan x) (tan eps)) (cos x)) (sin x))
116.0ms
(* (tan x) (tan eps))

simplify2.9s

Counts
49 → 85
Calls

49 calls. Slowest were:

424.0ms
(+ (* (pow x 2) eps) (+ (* 1/6 (* (pow x 4) eps)) (* 1/3 (* (pow x 2) (pow eps 3)))))
314.0ms
(+ (* 1/3 (* (pow x 3) eps)) (+ (* 1/3 (* x (pow eps 3))) (* x eps)))
311.0ms
(+ (* 1/3 (* (pow x 3) eps)) (+ (* 1/3 (* x (pow eps 3))) (* x eps)))

prune1.4s

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.1b

regimes142.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 
(FPCore (x eps)
  :name "2tan (problem 3.3.2)"

  :herbie-target
  (/ (sin eps) (* (cos x) (cos (+ x eps))))

  (- (tan (+ x eps)) (tan x)))

Backtrace

partition: contract violation expected: list? given: 0.3674544830526169 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