Error in 45.9s

Runtime

Time bar (total: 45.9s)Debug log

start773.0ms

Algorithm
intervals

setup11.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 60.3b

localize10.0ms

Local error

Found 2 expressions with local error:

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

rewrite6.0ms

Algorithm
rewrite-expression-head
Counts
2 → 63
Calls

2 calls. Slowest were:

4.0ms
(- (/ 1 x) (/ 1 (tan x)))
1.0ms
(/ 1 (tan x))

series121.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

81.0ms
(- (/ 1 x) (/ 1 (tan x)))
39.0ms
(/ 1 (tan x))

simplify1.9s

Counts
62 → 69
Calls

62 calls. Slowest were:

213.0ms
(- (/ 1 x) (+ (* 1/3 x) (* 1/45 (pow x 3))))
130.0ms
(fma (- (cos x)) (/ 1 (sin x)) (* (cos x) (/ 1 (sin x))))
116.0ms
(fma (- (cos x)) (/ 1 (sin x)) (* (cos x) (/ 1 (sin x))))

prune556.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.4b

localize18.0ms

Local error

Found 3 expressions with local error:

0.4b
(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)

rewrite3.0ms

Algorithm
rewrite-expression-head
Counts
3 → 33
Calls

3 calls. Slowest were:

2.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)

series82.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

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

simplify310.0ms

Counts
11 → 42
Calls

11 calls. Slowest were:

93.0ms
(+ (* 1/3 x) (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))))
85.0ms
(+ (* 1/3 x) (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))))
72.0ms
(+ (* 1/3 x) (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))))

prune590.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.3b

localize20.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))))

rewrite14.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

10.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)))

series549.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

155.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
140.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
134.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))))

simplify5.6s

Counts
41 → 81
Calls

41 calls. Slowest were:

483.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)))))
479.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)))))
434.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

localize37.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.7b
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

rewrite5.0ms

Algorithm
rewrite-expression-head
Counts
4 → 52
Calls

4 calls. Slowest were:

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)))
1.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

series573.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

153.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
146.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))
141.0ms
(cbrt (fma (fma 1/45 (* x x) 1/3) x (* (pow x 5) 2/945)))

simplify4.8s

Counts
24 → 64
Calls

24 calls. Slowest were:

718.0ms
(+ (exp (* 1/3 (+ (log 1/3) (log x)))) (+ (* 23/14175 (* (pow x 4) (exp (* 1/3 (+ (log 1/3) (log x)))))) (* 1/45 (* (pow x 2) (exp (* 1/3 (+ (log 1/3) (log x))))))))
482.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)))))
441.0ms
(+ (exp (* 1/3 (+ (log 1/3) (log x)))) (+ (* 23/14175 (* (pow x 4) (exp (* 1/3 (+ (log 1/3) (log x)))))) (* 1/45 (* (pow x 2) (exp (* 1/3 (+ (log 1/3) (log x))))))))

prune1.1s

Pruning

15 alts after pruning (12 fresh and 3 done)

Merged error: 0.2b

regimes151.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018359 +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.3378488264842196 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