Error in 8.7s

Runtime

Time bar (total: 8.7s)Debug logProfile

start46.0ms

Algorithm
intervals

setup25.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 16.5b

localize14.0ms

Local error

Found 2 expressions with local error:

1.2b
(- (atan (+ N 1)) (atan N))
0.0b
(atan (+ N 1))

rewrite5.0ms

Algorithm
rewrite-expression-head
Counts
2 → 38
Calls

2 calls. Slowest were:

4.0ms
(- (atan (+ N 1)) (atan N))
0.0ms
(atan (+ N 1))

series9.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

7.0ms
(- (atan (+ N 1)) (atan N))
2.0ms
(atan (+ N 1))

simplify533.0ms

Counts
32 → 44
Calls

32 calls. Slowest were:

41.0ms
(fma (sqrt (atan (+ N 1))) (sqrt (atan (+ N 1))) (- (* (sqrt (atan N)) (sqrt (atan N)))))
35.0ms
(fma 1 (atan (+ N 1)) (- (* (atan N) 1)))
34.0ms
(fma (* (cbrt (atan (+ N 1))) (cbrt (atan (+ N 1)))) (cbrt (atan (+ N 1))) (- (* (cbrt (atan N)) (* (cbrt (atan N)) (cbrt (atan N))))))

prune392.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.2b

localize7.0ms

Local error

Found 1 expressions with local error:

0.2b
(atan2 1 (fma N (+ N 1) 1))

rewrite0.0ms

Algorithm
rewrite-expression-head
Counts
1 → 9
Calls

1 calls. Slowest were:

0.0ms
(atan2 1 (fma N (+ N 1) 1))

series2.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

2.0ms
(atan2 1 (fma N (+ N 1) 1))

simplify38.0ms

Counts
3 → 12
Calls

3 calls. Slowest were:

15.0ms
(atan2 1 (fma N (+ N 1) 1))
12.0ms
(atan2 1 (fma N (+ N 1) 1))
11.0ms
(atan2 1 (fma N (+ N 1) 1))

prune94.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.2b

localize6.0ms

Local error

Found 4 expressions with local error:

14.4b
(sqrt (atan2 1 (fma N (+ N 1) 1)))
14.4b
(sqrt (atan2 1 (fma N (+ N 1) 1)))
0.6b
(* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))
0.2b
(atan2 1 (fma N (+ N 1) 1))

rewrite8.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

5.0ms
(* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))
1.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))
1.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))

series41.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

19.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))
13.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))
4.0ms
(* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))

simplify983.0ms

Counts
42 → 81
Calls

42 calls. Slowest were:

62.0ms
(* (* (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (* (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (atan2 1 (fma N (+ N 1) 1)))))
42.0ms
(sqrt (* (cbrt (atan2 1 (fma N (+ N 1) 1))) (cbrt (atan2 1 (fma N (+ N 1) 1)))))
41.0ms
(sqrt (cbrt (atan2 1 (fma N (+ N 1) 1))))

prune904.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 0.2b

localize12.0ms

Local error

Found 4 expressions with local error:

14.4b
(sqrt (atan2 1 (fma N (+ N 1) 1)))
14.4b
(sqrt (atan2 1 (fma N (+ N 1) 1)))
14.4b
(sqrt (atan2 1 (fma N (+ N 1) 1)))
0.6b
(* (sqrt (atan2 1 (fma N (+ N 1) 1))) (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1))))))

rewrite22.0ms

Algorithm
rewrite-expression-head
Counts
4 → 68
Calls

4 calls. Slowest were:

18.0ms
(* (sqrt (atan2 1 (fma N (+ N 1) 1))) (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1))))))
1.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))
1.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))

series60.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

18.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))
18.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))
18.0ms
(sqrt (atan2 1 (fma N (+ N 1) 1)))

simplify1.2s

Counts
40 → 80
Calls

40 calls. Slowest were:

178.0ms
(* (* (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (* (* (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1))))) (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))))) (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))))))
114.0ms
(* (* (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (* (* (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1))))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1))))) (* (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1))))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))))))
53.0ms
(* (sqrt (atan2 1 (fma N (+ N 1) 1))) (* (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1))))))

prune811.0ms

Pruning

7 alts after pruning (4 fresh and 3 done)

Merged error: 0.2b

regimes76.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 +o rules:numerics
(FPCore (N)
  :name "2atan (example 3.5)"

  :herbie-target
  (atan (/ 1 (+ 1 (* N (+ N 1)))))

  (- (atan (+ N 1)) (atan N)))

Backtrace

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