Error in 26.9s

Runtime

Time bar (total: 26.9s)Debug log

start135.0ms

Algorithm
intervals

setup70.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 23.7b

localize50.0ms

Local error

Found 3 expressions with local error:

23.7b
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))
0.5b
(- (* b c) (* a d))
0.0b
(+ (* c c) (* d d))

rewrite25.0ms

Algorithm
rewrite-expression-head
Counts
3 → 64
Calls

3 calls. Slowest were:

15.0ms
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))
4.0ms
(+ (* c c) (* d d))
4.0ms
(- (* b c) (* a d))

series141.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

66.0ms
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))
50.0ms
(- (* b c) (* a d))
25.0ms
(+ (* c c) (* d d))

simplify2.0s

Counts
43 → 73
Calls

43 calls. Slowest were:

627.0ms
(- (* (* b c) (* b c)) (* (* a d) (* a d)))
304.0ms
(- (pow (* b c) 3) (pow (* a d) 3))
280.0ms
(+ (* (* c c) (* c c)) (- (* (* d d) (* d d)) (* (* c c) (* d d))))

prune810.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 15.1b

localize30.0ms

Local error

Found 4 expressions with local error:

14.9b
(/ (- (* b c) (* a d)) (hypot c d))
0.5b
(- (* b c) (* a d))
0.2b
(* (/ 1 (hypot c d)) (/ (- (* b c) (* a d)) (hypot c d)))
0.0b
(/ 1 (hypot c d))

rewrite41.0ms

Algorithm
rewrite-expression-head
Counts
4 → 103
Calls

4 calls. Slowest were:

21.0ms
(* (/ 1 (hypot c d)) (/ (- (* b c) (* a d)) (hypot c d)))
12.0ms
(/ (- (* b c) (* a d)) (hypot c d))
4.0ms
(- (* b c) (* a d))

series317.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

154.0ms
(* (/ 1 (hypot c d)) (/ (- (* b c) (* a d)) (hypot c d)))
98.0ms
(/ (- (* b c) (* a d)) (hypot c d))
37.0ms
(/ 1 (hypot c d))

simplify3.5s

Counts
73 → 115
Calls

73 calls. Slowest were:

600.0ms
(- (* (* b c) (* b c)) (* (* a d) (* a d)))
338.0ms
(* 1 (/ (- (* b c) (* a d)) (hypot c d)))
310.0ms
(- (pow (* b c) 3) (pow (* a d) 3))

prune1.5s

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 5.3b

localize22.0ms

Local error

Found 4 expressions with local error:

14.9b
(/ (- (* c b) (* a d)) (hypot c d))
0.5b
(- (* c b) (* a d))
0.1b
(/ (/ (- (* c b) (* a d)) (hypot c d)) (hypot c d))
0.0b
(hypot c d)

rewrite38.0ms

Algorithm
rewrite-expression-head
Counts
4 → 131
Calls

4 calls. Slowest were:

16.0ms
(/ (- (* c b) (* a d)) (hypot c d))
14.0ms
(/ (/ (- (* c b) (* a d)) (hypot c d)) (hypot c d))
4.0ms
(- (* c b) (* a d))

series226.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

88.0ms
(/ (/ (- (* c b) (* a d)) (hypot c d)) (hypot c d))
65.0ms
(/ (- (* c b) (* a d)) (hypot c d))
38.0ms
(- (* c b) (* a d))

simplify6.5s

Counts
142 → 143
Calls

142 calls. Slowest were:

625.0ms
(- (* (* c b) (* c b)) (* (* a d) (* a d)))
599.0ms
(/ (* (* (/ (- (* c b) (* a d)) (hypot c d)) (/ (- (* c b) (* a d)) (hypot c d))) (/ (- (* c b) (* a d)) (hypot c d))) (* (* (hypot c d) (hypot c d)) (hypot c d)))
443.0ms
(/ (/ (* (* (- (* c b) (* a d)) (- (* c b) (* a d))) (- (* c b) (* a d))) (* (* (hypot c d) (hypot c d)) (hypot c d))) (* (* (hypot c d) (hypot c d)) (hypot c d)))

prune1.2s

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 5.3b

localize9.0ms

Local error

Found 4 expressions with local error:

14.9b
(/ (hypot c d) (- (* c b) (* a d)))
0.5b
(- (* c b) (* a d))
0.2b
(/ 1 (/ (hypot c d) (- (* c b) (* a d))))
0.1b
(/ (/ 1 (/ (hypot c d) (- (* c b) (* a d)))) (hypot c d))

rewrite15.0ms

Algorithm
rewrite-expression-head
Counts
4 → 119
Calls

4 calls. Slowest were:

5.0ms
(/ (hypot c d) (- (* c b) (* a d)))
4.0ms
(/ (/ 1 (/ (hypot c d) (- (* c b) (* a d)))) (hypot c d))
2.0ms
(/ 1 (/ (hypot c d) (- (* c b) (* a d))))

series251.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

97.0ms
(/ (/ 1 (/ (hypot c d) (- (* c b) (* a d)))) (hypot c d))
65.0ms
(/ 1 (/ (hypot c d) (- (* c b) (* a d))))
62.0ms
(/ (hypot c d) (- (* c b) (* a d)))

simplify5.1s

Counts
99 → 131
Calls

99 calls. Slowest were:

313.0ms
(/ (/ 1 (/ (hypot c d) (- (* c b) (* a d)))) (hypot c d))
309.0ms
(/ (/ 1 (/ (hypot c d) (- (* c b) (* a d)))) (hypot c d))
233.0ms
(- (log (/ 1 (/ (hypot c d) (- (* c b) (* a d))))) (log (hypot c d)))

prune1.1s

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 5.3b

regimes231.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018359 +o rules:numerics
(FPCore (a b c d)
  :name "Complex division, imag part"

  :herbie-target
  (if (< (fabs d) (fabs c)) (/ (- b (* a (/ d c))) (+ c (* d (/ d c)))) (/ (+ (- a) (* b (/ c d))) (+ d (* c (/ c d)))))

  (/ (- (* b c) (* a d)) (+ (* c c) (* d d))))

Backtrace

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