Error in 46.7s

Runtime

Time bar (total: 46.7s)Debug logProfile

start576.0ms

Algorithm
intervals

setup566.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 58.5b

localize24.0ms

Local error

Found 2 expressions with local error:

4.0b
(- (exp (- 0 im)) (exp im))
0.0b
(* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Counts
2 → 37
Calls

2 calls. Slowest were:

32.0ms
(* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im)))
13.0ms
(- (exp (- 0 im)) (exp im))

series193.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

124.0ms
(* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im)))
69.0ms
(- (exp (- 0 im)) (exp im))

simplify1.8s

Counts
24 → 43
Calls

24 calls. Slowest were:

268.0ms
(* 0.5 (* (- (exp (* -1 im)) (exp im)) (cos re)))
263.0ms
(* 0.5 (* (- (exp (- im)) (exp im)) (cos re)))
249.0ms
(- (* 0.5 (* (pow re 2) im)) (+ (* 0.16666666666666666 (pow im 3)) (* 1.0 im)))

prune561.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize26.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))
0.1b
(* 1/3 (pow im 3))
0.1b
(* 1/60 (pow im 5))
0.0b
(+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Counts
4 → 64
Calls

4 calls. Slowest were:

19.0ms
(* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))
6.0ms
(+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))
1.0ms
(* 1/3 (pow im 3))

series240.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

160.0ms
(* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))
39.0ms
(+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))
23.0ms
(* 1/60 (pow im 5))

simplify3.4s

Counts
39 → 76
Calls

39 calls. Slowest were:

341.0ms
(* (* 0.5 (cos re)) (- (+ (* 1/60 (pow im 5)) (* 2 im))))
299.0ms
(* (* (* (* 0.5 (cos re)) (* 0.5 (cos re))) (* 0.5 (cos re))) (* (* (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))
286.0ms
(* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))

prune1.7s

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.1b

localize25.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (+ (* im -2) (* -1/60 (pow im 5))) (* 0.5 (cos re)))
0.1b
(* 1/3 (pow im 3))
0.1b
(* (* 0.5 (cos re)) (- (* 1/3 (pow im 3))))
0.1b
(* -1/60 (pow im 5))

rewrite18.0ms

Algorithm
rewrite-expression-head
Counts
4 → 60
Calls

4 calls. Slowest were:

10.0ms
(* (+ (* im -2) (* -1/60 (pow im 5))) (* 0.5 (cos re)))
6.0ms
(* (* 0.5 (cos re)) (- (* 1/3 (pow im 3))))
1.0ms
(* 1/3 (pow im 3))

series179.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

81.0ms
(* (* 0.5 (cos re)) (- (* 1/3 (pow im 3))))
47.0ms
(* (+ (* im -2) (* -1/60 (pow im 5))) (* 0.5 (cos re)))
30.0ms
(* 1/3 (pow im 3))

simplify1.8s

Counts
36 → 72
Calls

36 calls. Slowest were:

411.0ms
(+ (log (* 0.5 (cos re))) (log (- (* 1/3 (pow im 3)))))
214.0ms
(- (* 0.08333333333333333 (* (pow re 2) (pow im 3))) (* 0.16666666666666666 (pow im 3)))
198.0ms
(* (* 0.5 (cos re)) (- (* 1/3 (pow im 3))))

prune1.6s

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 0.1b

localize21.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))
0.6b
(cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))
0.6b
(cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))
0.5b
(* (cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))) (cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))))

rewrite110.0ms

Algorithm
rewrite-expression-head
Counts
4 → 65
Calls

4 calls. Slowest were:

41.0ms
(* (cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))) (cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))))
26.0ms
(cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))
21.0ms
(cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))

series1.5s

Counts
4 → 12
Calls

4 calls. Slowest were:

571.0ms
(* (cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))) (cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))))
327.0ms
(cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))
325.0ms
(cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im))))))

simplify9.2s

Counts
49 → 77
Calls

49 calls. Slowest were:

415.0ms
(+ (* (exp (* 1/3 (- (log (* 1/60 (cos re))) (* 5 (log (/ 1 im)))))) (cbrt -0.5)) (* 20/3 (/ (* (exp (* 1/3 (- (log (* 1/60 (cos re))) (* 5 (log (/ 1 im)))))) (cbrt -0.5)) (pow im 2))))
410.0ms
(+ (* 20/3 (/ (* (cbrt 0.5) (exp (* 1/3 (- (log (* 1/60 (cos re))) (* 5 (log (/ -1 im))))))) (pow im 2))) (* (cbrt 0.5) (exp (* 1/3 (- (log (* 1/60 (cos re))) (* 5 (log (/ -1 im))))))))
399.0ms
(sqrt (cbrt (* (* 0.5 (cos re)) (- (+ (* 1/3 (pow im 3)) (+ (* 1/60 (pow im 5)) (* 2 im)))))))

prune1.7s

Pruning

16 alts after pruning (14 fresh and 2 done)

Merged error: 0.0b

regimes867.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 
(FPCore (re im)
  :name "math.sin on complex, imaginary part"

  :herbie-target
  (if (< (fabs im) 1) (- (* (cos re) (+ (+ im (* (* (* 1/6 im) im) im)) (* (* (* (* (* 1/120 im) im) im) im) im)))) (* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im))))

  (* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im))))

Backtrace

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