Details

Time bar (total: 6.8s)

sample352.0ms

Algorithm
intervals
Results
45.0ms79×body1280valid
20.0ms248×body80valid
18.0ms41×body640valid
4.0ms16×body320valid
1.0msbody160valid

simplify36.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune22.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 33.5b

localize25.0ms

Local error

Found 4 expressions with local error:

1.9b
(* (atan2 x.im x.re) y.im)
29.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.4b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite22.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
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
Calls
4 calls:
3.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
9.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series247.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(* (atan2 x.im x.re) y.im)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
156.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify74.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
0191422
1501385
21134381
32496381
45001381

prune327.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 20.2b

localize19.0ms

Local error

Found 4 expressions with local error:

0.1b
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
0.3b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.9b
(* (atan2 x.im x.re) y.im)
29.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
11×pow1
10×add-cube-cbrt *-un-lft-identity
associate-*l*
add-exp-log add-cbrt-cube
add-log-exp
associate-*r*
exp-prod sqrt-prod log-pow
sqrt-pow1 pow1/2 sqrt-div exp-sum pow-prod-down prod-exp *-commutative cbrt-unprod rem-exp-log unswap-sqr
sub-neg rem-sqrt-square flip3-+ exp-diff diff-log flip-+
Counts
4 → 69
Calls
4 calls:
8.0ms
(exp (- (* (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)))

series244.0ms

Counts
4 → 12
Calls
4 calls:
95.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
96.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
16.0ms
(* (atan2 x.im x.re) y.im)
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify57.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0280545
1825486
22118481
35001481

prune299.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 4.5b

localize26.0ms

Local error

Found 4 expressions with local error:

3.6b
(cbrt (atan2 x.im x.re))
29.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.4b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
cbrt-prod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum pow1/3
Counts
4 → 49
Calls
4 calls:
1.0ms
(cbrt (atan2 x.im x.re))
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)))

series257.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(cbrt (atan2 x.im x.re))
41.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
140.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify66.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (60.0ms)

IterNodesCost
0155400
1329368
2726366
31987366
45001364

prune346.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 4.5b

localize32.0ms

Local error

Found 4 expressions with local error:

3.6b
(cbrt (atan2 x.im x.re))
29.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.4b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
cbrt-prod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum pow1/3
Counts
4 → 49
Calls
4 calls:
0.0ms
(cbrt (atan2 x.im x.re))
4.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)))

series254.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(cbrt (atan2 x.im x.re))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
138.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify65.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (60.0ms)

IterNodesCost
0155400
1329368
2726366
31987366
45001364

prune344.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 4.5b

regimes353.0ms

Accuracy

79.7% (6.0b remaining)

Error of 9.9b against oracle of 3.9b and baseline of 33.5b

bsearch271.0ms

Steps
ItersRangePoint
6
4.827830026403749e+22
3.012801252685256e+23
4.9079859598248485e+22
8
1.3116239390780432e-93
1.0966899470305535e-89
8.894859269404382e-92
8
-6.351645468851565e-305
8.319622087794074e-308
-4.9338561076035e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06959
17359
27359

end0.0ms

sample3.0s

Algorithm
intervals
Results
1.2s2000×body1280valid
671.0ms7920×body80valid
537.0ms1392×body640valid
185.0ms649×body320valid
50.0ms285×body160valid