Error in 16.3s

Runtime

Time bar (total: 16.3s)Debug logProfile

start230.0ms

Algorithm
intervals

setup83.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 13.8b

localize18.0ms

Local error

Found 2 expressions with local error:

1.0b
(- (hypot re im) re)
0.0b
(sqrt (* (- (hypot re im) re) 2.0))

rewrite11.0ms

Algorithm
rewrite-expression-head
Counts
2 → 29
Calls

2 calls. Slowest were:

6.0ms
(- (hypot re im) re)
3.0ms
(sqrt (* (- (hypot re im) re) 2.0))

series136.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

88.0ms
(sqrt (* (- (hypot re im) re) 2.0))
47.0ms
(- (hypot re im) re)

simplify308.0ms

Counts
11 → 35
Calls

11 calls. Slowest were:

219.0ms
(sqrt (* (- (* (hypot re im) (hypot re im)) (* re re)) 2.0))
73.0ms
(sqrt (* (- (pow (hypot re im) 3) (pow re 3)) 2.0))
3.0ms
(sqrt (- (hypot re im) re))

prune389.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 13.7b

localize14.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (hypot re im) re)
1.0b
(- (hypot re im) re)
0.4b
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
0.0b
(sqrt (- (hypot re im) re))

rewrite23.0ms

Algorithm
rewrite-expression-head
Counts
4 → 88
Calls

4 calls. Slowest were:

11.0ms
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
4.0ms
(- (hypot re im) re)
4.0ms
(sqrt (- (hypot re im) re))

series151.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

55.0ms
(sqrt (- (hypot re im) re))
35.0ms
(- (hypot re im) re)
31.0ms
(- (hypot re im) re)

simplify1.5s

Counts
56 → 100
Calls

56 calls. Slowest were:

405.0ms
(* (* (* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re))) (sqrt (- (hypot re im) re))) (* (* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re))) (sqrt (- (hypot re im) re))))
208.0ms
(* (sqrt (- (* (hypot re im) (hypot re im)) (* re re))) (sqrt (- (hypot re im) re)))
144.0ms
(* (sqrt (- (pow (hypot re im) 3) (pow re 3))) (sqrt (- (* (hypot re im) (hypot re im)) (* re re))))

prune1.3s

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 13.7b

localize19.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (hypot re im) re)
1.0b
(- (hypot re im) re)
1.0b
(- (hypot re im) re)
0.4b
(cbrt (- (hypot re im) re))

rewrite12.0ms

Algorithm
rewrite-expression-head
Counts
4 → 63
Calls

4 calls. Slowest were:

3.0ms
(- (hypot re im) re)
3.0ms
(- (hypot re im) re)
3.0ms
(- (hypot re im) re)

series236.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

119.0ms
(cbrt (- (hypot re im) re))
45.0ms
(- (hypot re im) re)
38.0ms
(- (hypot re im) re)

simplify912.0ms

Counts
23 → 75
Calls

23 calls. Slowest were:

355.0ms
(exp (* 1/3 (- (+ (log 1/2) (log (/ 1 re))) (* 2 (log (/ 1 im))))))
274.0ms
(- (+ (* 1/18 (* (pow re 2) (pow (/ 1 (pow im 5)) 1/3))) (pow im 1/3)) (* 1/3 (* re (pow (/ 1 (pow im 2)) 1/3))))
143.0ms
(exp (* 1/3 (- (log 2) (log (/ -1 re)))))

prune1.3s

Pruning

7 alts after pruning (4 fresh and 3 done)

Merged error: 13.7b

localize14.0ms

Local error

Found 2 expressions with local error:

15.7b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))
0.0b
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 2.0))

rewrite2.0ms

Algorithm
rewrite-expression-head
Counts
2 → 21
Calls

2 calls. Slowest were:

1.0ms
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 2.0))
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

series206.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

128.0ms
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 2.0))
78.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

simplify18.0ms

Counts
7 → 27
Calls

7 calls. Slowest were:

12.0ms
(sqrt (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)))
3.0ms
(- im re)
0.0ms
(- (+ re (- (+ (* +nan.0 (/ (pow im 2) (pow re 2))) (- +nan.0)))))

prune295.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 13.7b

regimes602.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 +o rules:numerics
(FPCore (re im)
  :name "math.sqrt on complex, imaginary part, im greater than 0 branch"
  (* 0.5 (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))))

Backtrace

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