Error in 1.1m

Runtime

Time bar (total: 1.1m)Debug log

start397.0ms

Algorithm
intervals

setup160.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.5b

localize53.0ms

Local error

Found 4 expressions with local error:

0.7b
(/ (cos th) (sqrt 2))
0.7b
(/ (cos th) (sqrt 2))
0.3b
(* (/ (cos th) (sqrt 2)) (* a1 a1))
0.3b
(* (/ (cos th) (sqrt 2)) (* a2 a2))

rewrite39.0ms

Algorithm
rewrite-expression-head
Counts
4 → 118
Calls

4 calls. Slowest were:

12.0ms
(* (/ (cos th) (sqrt 2)) (* a1 a1))
11.0ms
(* (/ (cos th) (sqrt 2)) (* a2 a2))
7.0ms
(/ (cos th) (sqrt 2))

series273.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

103.0ms
(* (/ (cos th) (sqrt 2)) (* a2 a2))
73.0ms
(* (/ (cos th) (sqrt 2)) (* a1 a1))
51.0ms
(/ (cos th) (sqrt 2))

simplify3.4s

Counts
98 → 130
Calls

98 calls. Slowest were:

385.0ms
(* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2)))
375.0ms
(* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1)))
308.0ms
(- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 2) (pow th 2)) (sqrt 2))))

prune1.8s

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0.0b

localize8.0ms

Local error

Found 4 expressions with local error:

0.7b
(/ (cos th) (sqrt 2))
0.3b
(* (/ (cos th) (sqrt 2)) (* a2 a2))
0.3b
(/ (* (cos th) (* a1 a1)) (sqrt 2))
0.1b
(* (cos th) (* a1 a1))

rewrite22.0ms

Algorithm
rewrite-expression-head
Counts
4 → 99
Calls

4 calls. Slowest were:

7.0ms
(/ (* (cos th) (* a1 a1)) (sqrt 2))
6.0ms
(* (/ (cos th) (sqrt 2)) (* a2 a2))
4.0ms
(* (cos th) (* a1 a1))

series271.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

104.0ms
(/ (* (cos th) (* a1 a1)) (sqrt 2))
80.0ms
(* (/ (cos th) (sqrt 2)) (* a2 a2))
54.0ms
(* (cos th) (* a1 a1))

simplify2.9s

Counts
74 → 111
Calls

74 calls. Slowest were:

415.0ms
(- (pow a1 2) (* 1/2 (* (pow a1 2) (pow th 2))))
310.0ms
(* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2)))
275.0ms
(/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2)))

prune1.6s

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0b

localize22.0ms

Local error

Found 4 expressions with local error:

0.7b
(/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))
0.6b
(/ (cos th) (sqrt (sqrt 2)))
0.3b
(* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a2 a2))
0.3b
(/ (* (cos th) (* a1 a1)) (sqrt 2))

rewrite63.0ms

Algorithm
rewrite-expression-head
Counts
4 → 396
Calls

4 calls. Slowest were:

21.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a2 a2))
15.0ms
(/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))
11.0ms
(/ (* (cos th) (* a1 a1)) (sqrt 2))

series299.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

100.0ms
(/ (* (cos th) (* a1 a1)) (sqrt 2))
84.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a2 a2))
73.0ms
(/ (cos th) (sqrt (sqrt 2)))

simplify13.9s

Counts
511 → 408
Calls

511 calls. Slowest were:

1.2s
(* (* (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2)))
447.0ms
(/ (* (* (/ (cos th) (sqrt (sqrt 2))) (/ (cos th) (sqrt (sqrt 2)))) (/ (cos th) (sqrt (sqrt 2)))) (* (* (sqrt (sqrt 2)) (sqrt (sqrt 2))) (sqrt (sqrt 2))))
360.0ms
(+ (log (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (log (* a2 a2)))

prune6.5s

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0b

localize20.0ms

Local error

Found 4 expressions with local error:

0.7b
(/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))
0.6b
(/ (cos th) (sqrt (sqrt 2)))
0.3b
(* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a2 a2))
0.3b
(/ (* a1 a1) (sqrt 2))

rewrite66.0ms

Algorithm
rewrite-expression-head
Counts
4 → 394
Calls

4 calls. Slowest were:

21.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a2 a2))
15.0ms
(/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))
7.0ms
(/ (cos th) (sqrt (sqrt 2)))

series257.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

72.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a2 a2))
67.0ms
(/ (cos th) (sqrt (sqrt 2)))
62.0ms
(/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))

simplify13.3s

Counts
508 → 406
Calls

508 calls. Slowest were:

599.0ms
(* (* (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2)))
439.0ms
(/ (* (* (/ (cos th) (sqrt (sqrt 2))) (/ (cos th) (sqrt (sqrt 2)))) (/ (cos th) (sqrt (sqrt 2)))) (* (* (sqrt (sqrt 2)) (sqrt (sqrt 2))) (sqrt (sqrt 2))))
367.0ms
(+ (- (- (log (cos th)) (log (sqrt (sqrt 2)))) (log (sqrt (sqrt 2)))) (log (* a2 a2)))

prune6.5s

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

regimes511.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018359 +o rules:numerics
(FPCore (a1 a2 th)
  :name "Migdal et al, Equation (64)"
  (+ (* (/ (cos th) (sqrt 2)) (* a1 a1)) (* (/ (cos th) (sqrt 2)) (* a2 a2))))

Backtrace

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