Error in 14.4s

Runtime

Time bar (total: 14.4s)Debug log

start195.0ms

Algorithm
intervals

setup48.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 13.0b

localize16.0ms

Local error

Found 2 expressions with local error:

0.7b
(fma (hypot re im) 2.0 (* re 2.0))
0.0b
(hypot re im)

rewrite1.0ms

Algorithm
rewrite-expression-head
Counts
2 → 20
Calls

2 calls. Slowest were:

0.0ms
(fma (hypot re im) 2.0 (* re 2.0))
0.0ms
(hypot re im)

series85.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

59.0ms
(fma (hypot re im) 2.0 (* re 2.0))
26.0ms
(hypot re im)

simplify21.0ms

Counts
6 → 26
Calls

6 calls. Slowest were:

12.0ms
(+ (* 2.0 re) (* 2.0 im))
3.0ms
(* -1 re)
3.0ms
(* 4.0 re)

prune368.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 12.8b

localize28.0ms

Local error

Found 4 expressions with local error:

7.0b
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
0.0b
(hypot re im)
0.0b
(hypot re im)

rewrite12.0ms

Algorithm
rewrite-expression-head
Counts
4 → 62
Calls

4 calls. Slowest were:

10.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
0.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
0.0ms
(hypot re im)

series132.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

36.0ms
(hypot re im)
35.0ms
(hypot re im)
34.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))

simplify86.0ms

Counts
33 → 74
Calls

33 calls. Slowest were:

20.0ms
(* (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im))) (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im))))
12.0ms
(+ (* 2.0 re) (* 2.0 im))
4.0ms
(sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im))))

prune1.2s

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 12.8b

localize15.0ms

Local error

Found 4 expressions with local error:

7.0b
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
7.0b
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
7.0b
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))

rewrite6.0ms

Algorithm
rewrite-expression-head
Counts
4 → 62
Calls

4 calls. Slowest were:

5.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
0.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
0.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))

series159.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

56.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
34.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
34.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))

simplify137.0ms

Counts
33 → 74
Calls

33 calls. Slowest were:

38.0ms
(* (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im))) (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im))))
12.0ms
(+ (* 2.0 re) (* 2.0 im))
12.0ms
(+ (* 2.0 re) (* 2.0 im))

prune1.3s

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 12.8b

localize60.0ms

Local error

Found 4 expressions with local error:

9.7b
(fma (* (* (sqrt (hypot re im)) (sqrt (sqrt (hypot re im)))) (sqrt (sqrt (hypot re im)))) 2.0 (* re 2.0))
7.0b
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
7.0b
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Counts
4 → 62
Calls

4 calls. Slowest were:

10.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
0.0ms
(fma (* (* (sqrt (hypot re im)) (sqrt (sqrt (hypot re im)))) (sqrt (sqrt (hypot re im)))) 2.0 (* re 2.0))
0.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))

series148.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

50.0ms
(fma (* (* (sqrt (hypot re im)) (sqrt (sqrt (hypot re im)))) (sqrt (sqrt (hypot re im)))) 2.0 (* re 2.0))
39.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))
34.0ms
(fma (* (sqrt (hypot re im)) (sqrt (hypot re im))) 2.0 (* re 2.0))

simplify76.0ms

Counts
33 → 74
Calls

33 calls. Slowest were:

19.0ms
(* (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im))) (* (* (sqrt (hypot re im)) (sqrt (hypot re im))) (sqrt (hypot re im))))
10.0ms
(+ (* 2.0 re) (* 2.0 im))
7.0ms
(+ (* 2.0 re) (* 2.0 im))

prune1.6s

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 12.8b

regimes205.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018359 +o rules:numerics
(FPCore (re im)
  :name "math.sqrt on complex, real part"

  :herbie-target
  (if (< re 0) (* 0.5 (* (sqrt 2) (sqrt (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))) (* 0.5 (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))

  (* 0.5 (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))

Backtrace

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