Error in 44.5s

Runtime

Time bar (total: 44.5s)Debug logProfile

start723.0ms

Algorithm
intervals

setup25.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 60.1b

localize71.0ms

Local error

Found 1 expressions with local error:

2.7b
(- (/ 1 x) (/ 1 (tan x)))

rewrite10.0ms

Algorithm
rewrite-expression-head
Counts
1 → 44
Calls

1 calls. Slowest were:

8.0ms
(- (/ 1 x) (/ 1 (tan x)))

series55.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

55.0ms
(- (/ 1 x) (/ 1 (tan x)))

simplify1.6s

Counts
54 → 47
Calls

54 calls. Slowest were:

107.0ms
(fma (* (cbrt (/ 1 x)) (cbrt (/ 1 x))) (cbrt (/ 1 x)) (- (* (cos x) (/ 1 (sin x)))))
107.0ms
(fma (- (cos x)) (/ 1 (sin x)) (* (cos x) (/ 1 (sin x))))
96.0ms
(fma (- (cos x)) (/ 1 (sin x)) (* (cos x) (/ 1 (sin x))))

prune404.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.3b

localize23.0ms

Local error

Found 3 expressions with local error:

0.3b
(fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))
0.1b
(* (pow x 5) 2/945)
0.0b
(fma 1/45 (* x x) 1/3)

rewrite6.0ms

Algorithm
rewrite-expression-head
Counts
3 → 33
Calls

3 calls. Slowest were:

5.0ms
(* (pow x 5) 2/945)
0.0ms
(fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))
0.0ms
(fma 1/45 (* x x) 1/3)

series74.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

25.0ms
(fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))
25.0ms
(* (pow x 5) 2/945)
24.0ms
(fma 1/45 (* x x) 1/3)

simplify275.0ms

Counts
11 → 42
Calls

11 calls. Slowest were:

94.0ms
(+ (* 1/3 x) (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))))
69.0ms
(+ (* 1/3 x) (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))))
66.0ms
(+ (* 1/3 x) (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))))

prune709.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.2b

localize19.0ms

Local error

Found 4 expressions with local error:

0.7b
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
0.7b
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
0.7b
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
0.5b
(* (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))))

rewrite7.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

5.0ms
(* (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))))
1.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
1.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

series630.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

181.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
163.0ms
(* (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))))
151.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

simplify5.6s

Counts
41 → 81
Calls

41 calls. Slowest were:

501.0ms
(+ (* 7/2 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 2))) (+ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (* 161/4 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 4)))))
474.0ms
(+ (exp (* 1/3 (- (log 4/893025) (* 10 (log (/ 1 x)))))) (+ (* 371/4 (/ (exp (* 1/3 (- (log 4/893025) (* 10 (log (/ 1 x)))))) (pow x 4))) (* 7 (/ (exp (* 1/3 (- (log 4/893025) (* 10 (log (/ 1 x)))))) (pow x 2)))))
468.0ms
(+ (* 7/2 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 2))) (+ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (* 161/4 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 4)))))

prune1.3s

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 0.2b

localize14.0ms

Local error

Found 4 expressions with local error:

0.7b
(cbrt (* (* (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))))
0.7b
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
0.7b
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
0.7b
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

rewrite10.0ms

Algorithm
rewrite-expression-head
Counts
4 → 51
Calls

4 calls. Slowest were:

8.0ms
(cbrt (* (* (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))))
1.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
0.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

series642.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

190.0ms
(cbrt (* (* (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))) (cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))))
163.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
155.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

simplify4.3s

Counts
23 → 63
Calls

23 calls. Slowest were:

507.0ms
(+ (* 7/2 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 2))) (+ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (* 161/4 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 4)))))
435.0ms
(+ (* 7/2 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 2))) (+ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (* 161/4 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 4)))))
433.0ms
(+ (* 7/2 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 2))) (+ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (* 161/4 (/ (exp (* 1/3 (- (log 2/945) (* 5 (log (/ 1 x)))))) (pow x 4)))))

prune1.0s

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 0.2b

regimes128.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 +o rules:numerics
(FPCore (x)
  :name "invcot (example 3.9)"
  :pre (and (< -0.026 x) (< x 0.026))

  :herbie-target
  (if (< (fabs x) 0.026) (* (/ x 3) (+ 1 (/ (* x x) 15))) (- (/ 1 x) (/ 1 (tan x))))

  (- (/ 1 x) (/ 1 (tan x))))

Backtrace

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