Details

Time bar (total: 6.4s)

sample336.0ms

Algorithm
intervals
Results
213.0ms57×body640valid
49.0ms71×body1280valid
26.0ms252×body80valid
9.0ms28×body320valid
2.0ms11×body160valid

simplify284.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune21.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 31.9b

Counts
2 → 2

localize34.0ms

Local error

Found 4 expressions with local error:

1.0b
(* (atan2 x.im x.re) y.im)
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(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
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)))
4.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)))

series91.0ms

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

simplify81.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0199426
1523389
21179387
32665387
45002387

prune126.0ms

Filtered
68 candidates to 54 candidates (20.6%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New64468
Fresh011
Picked101
Done000
Total65570

Merged error: 17.6b

Counts
70 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(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.0b
(* (atan2 x.im x.re) y.im)
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite18.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:
4.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)))

series78.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
25.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
6.0ms
(* (atan2 x.im x.re) y.im)
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify59.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 3 (53.0ms)

IterNodesCost
0299557
1864497
22274481
35002479

prune132.0ms

Filtered
81 candidates to 60 candidates (25.9%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New77481
Fresh044
Picked011
Done000
Total77986

Merged error: 3.1b

Counts
86 → 9

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(exp (- (* (log (* -1 x.re)) y.re) (* (atan2 x.im x.re) y.im)))
0.2b
(* (log (* -1 x.re)) y.re)
1.0b
(* (atan2 x.im x.re) y.im)

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
10×pow1
add-cube-cbrt *-un-lft-identity associate-*l*
add-exp-log add-cbrt-cube
associate-*r* add-log-exp
exp-prod pow-prod-down
exp-sum prod-exp log-pow *-commutative cbrt-unprod rem-exp-log unswap-sqr
sub-neg exp-diff diff-log
Counts
3 → 53
Calls
3 calls:
7.0ms
(exp (- (* (log (* -1 x.re)) y.re) (* (atan2 x.im x.re) y.im)))
5.0ms
(* (log (* -1 x.re)) y.re)
3.0ms
(* (atan2 x.im x.re) y.im)

series40.0ms

Counts
3 → 9
Calls
3 calls:
22.0ms
(exp (- (* (log (* -1 x.re)) y.re) (* (atan2 x.im x.re) y.im)))
11.0ms
(* (log (* -1 x.re)) y.re)
7.0ms
(* (atan2 x.im x.re) y.im)

simplify62.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0224328
1723286
23027278
35002278

prune120.0ms

Filtered
62 candidates to 41 candidates (33.9%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New60262
Fresh167
Picked101
Done011
Total62971

Merged error: 3.1b

Counts
71 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt y.im)
0.6b
(cbrt y.im)
0.6b
(cbrt y.im)
1.0b
(* (atan2 x.im x.re) (* (cbrt y.im) (cbrt y.im)))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log cbrt-prod add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
add-cbrt-cube
add-log-exp
pow1/3 associate-*l* pow-prod-down prod-exp cbrt-unprod
associate-*r* *-commutative unswap-sqr
Counts
4 → 52
Calls
4 calls:
1.0ms
(cbrt y.im)
1.0ms
(cbrt y.im)
1.0ms
(cbrt y.im)
6.0ms
(* (atan2 x.im x.re) (* (cbrt y.im) (cbrt y.im)))

series92.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(cbrt y.im)
21.0ms
(cbrt y.im)
22.0ms
(cbrt y.im)
28.0ms
(* (atan2 x.im x.re) (* (cbrt y.im) (cbrt y.im)))

simplify172.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 4 (168.0ms)

IterNodesCost
0175316
1431278
21248234
34677221
45001215

prune90.0ms

Filtered
64 candidates to 49 candidates (23.4%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New64064
Fresh077
Picked011
Done011
Total64973

Merged error: 3.1b

Counts
73 → 9

regimes453.0ms

Accuracy

61.7% (6.4b remaining)

Error of 9.1b against oracle of 2.7b and baseline of 19.3b

bsearch310.0ms

Steps
ItersRangePoint
7
376735214628221.2
2.487198078455393e+16
4071253643875412.0
8
-2.9265542436951078e-261
-9.539819824638375e-266
-3.3536859738233693e-264
9
-5.204985700414936e-141
-3.0579871170688905e-146
-4.2798434174935106e-144
8
-1.486399975514783e-10
-5.880082306549498e-15
-8.764566283937148e-11

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05654
16254
26254

end0.0ms

sample3.8s

Algorithm
intervals
Results
1.4s2024×body1280valid
850.0ms8076×body80valid
668.0ms1436×body640valid
213.0ms654×body320valid
63.0ms294×body160valid

Profiling

Loading profile data...