Details

Time bar (total: 7.6s)

sample361.0ms

Algorithm
intervals
Results
44.0ms71×body1280valid
25.0ms255×body80valid
19.0ms45×body640valid
5.0ms16×body320valid
2.0msbody2560valid
1.0msbody160valid

simplify38.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune20.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.2b

localize25.0ms

Local error

Found 4 expressions with local error:

1.3b
(* (atan2 x.im x.re) y.im)
31.1b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite20.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-+
sin-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)
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series249.0ms

Counts
4 → 12
Calls
4 calls:
18.0ms
(* (atan2 x.im x.re) y.im)
144.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
41.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
45.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify74.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
0196425
1506388
21139386
32509386
45001386

prune324.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 20.5b

localize30.0ms

Local error

Found 4 expressions with local error:

31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 60
Calls
4 calls:
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series147.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
39.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify140.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (135.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune432.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 20.5b

localize25.0ms

Local error

Found 4 expressions with local error:

11.6b
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
31.1b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
unpow-prod-down cube-prod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cube-mult sin-sum pow1/3 unpow3 rem-cbrt-cube sqr-pow
Counts
4 → 59
Calls
4 calls:
5.0ms
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series360.0ms

Counts
4 → 12
Calls
4 calls:
141.0ms
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
145.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
39.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify146.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 4 (138.0ms)

IterNodesCost
0191725
1493717
21262717
34742717
45001647

prune352.0ms

Pruning

8 alts after pruning (5 fresh and 3 done)

Merged error: 20.5b

localize30.0ms

Local error

Found 4 expressions with local error:

31.1b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div
add-exp-log add-cbrt-cube add-log-exp
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum
Counts
4 → 53
Calls
4 calls:
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series252.0ms

Counts
4 → 12
Calls
4 calls:
143.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
39.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify163.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 4 (52.0ms)

IterNodesCost
0142454
1288424
2611424
31523424
44766418
55002418

prune445.0ms

Pruning

8 alts after pruning (5 fresh and 3 done)

Merged error: 20.5b

regimes354.0ms

Accuracy

77.7% (3.2b remaining)

Error of 22.4b against oracle of 19.2b and baseline of 33.6b

bsearch131.0ms

Steps
ItersRangePoint
9
-1.8644950954430464e-305
6.689632292389639e-306
-5.505681862477526e-309

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03935
13935

end0.0ms

sample3.4s

Algorithm
intervals
Results
1.5s2276×body1280valid
721.0ms7975×body80valid
577.0ms1378×body640valid
165.0ms572×body320valid
61.0ms40×body2560valid
52.0ms274×body160valid