Details

Time bar (total: 6.4s)

sample362.0ms

Algorithm
intervals
Results
30.0ms52×body1280valid
23.0ms250×body80valid
20.0ms52×body640valid
5.0ms18×body320valid
2.0ms10×body160valid

simplify37.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03521
16317
29817
321717
489517
5500117

prune19.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.7b

localize24.0ms

Local error

Found 4 expressions with local error:

1.5b
(* (atan2 x.im x.re) y.im)
29.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.8b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
expm1-log1p-u sqrt-div log1p-expm1-u add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+ hypot-def
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 66
Calls
4 calls:
3.0ms
(* (atan2 x.im x.re) y.im)
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
8.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series235.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(* (atan2 x.im x.re) y.im)
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
148.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify86.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0207454
1556413
21286411
32863411
45002411

prune369.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 18.4b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
0.2b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.5b
(* (atan2 x.im x.re) y.im)
29.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
11×pow1
add-cube-cbrt *-un-lft-identity associate-*l*
add-exp-log add-cbrt-cube
associate-*r* add-log-exp
expm1-log1p-u log1p-expm1-u
sqrt-prod log-pow
sqrt-pow1 pow1/2 sqrt-div pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
sub-neg rem-sqrt-square flip3-- flip3-+ fma-neg diff-log prod-diff flip-- flip-+ hypot-def
Counts
4 → 77
Calls
4 calls:
3.0ms
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
5.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
3.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series255.0ms

Counts
4 → 12
Calls
4 calls:
118.0ms
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
86.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
15.0ms
(* (atan2 x.im x.re) y.im)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify88.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 3 (78.0ms)

IterNodesCost
0320596
11020545
23156516
35001484

prune316.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 2.7b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot x.re x.im)
0.0b
(- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im))
0.2b
(* (log (hypot x.re x.im)) y.re)
1.5b
(* (atan2 x.im x.re) y.im)

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1
add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
associate-*l*
associate-*r* add-log-exp
expm1-log1p-u log1p-expm1-u
pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
sub-neg hypot-udef flip3-- fma-neg diff-log prod-diff log-pow flip--
Counts
4 → 67
Calls
4 calls:
0.0ms
(hypot x.re x.im)
3.0ms
(- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im))
3.0ms
(* (log (hypot x.re x.im)) y.re)
3.0ms
(* (atan2 x.im x.re) y.im)

series286.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(hypot x.re x.im)
126.0ms
(- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im))
97.0ms
(* (log (hypot x.re x.im)) y.re)
16.0ms
(* (atan2 x.im x.re) y.im)

simplify71.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (65.0ms)

IterNodesCost
0247377
1794346
22559342
35002337

prune257.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 2.7b

localize26.0ms

Local error

Found 4 expressions with local error:

1.5b
(* (atan2 x.im x.re) y.im)
29.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.8b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
expm1-log1p-u sqrt-div log1p-expm1-u add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+ hypot-def
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 66
Calls
4 calls:
3.0ms
(* (atan2 x.im x.re) y.im)
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series219.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (atan2 x.im x.re) y.im)
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
131.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify79.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0207454
1556413
21286411
32863411
45002411

prune389.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 2.7b

regimes123.0ms

Accuracy

0% (0.5b remaining)

Error of 4.1b against oracle of 3.6b and baseline of 4.1b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0187
1207
2207

end0.0ms

sample3.1s

Algorithm
intervals
Results
1.2s2039×body1280valid
668.0ms7988×body80valid
603.0ms1558×body640valid
179.0ms664×body320valid
49.0ms284×body160valid