Details

Time bar (total: 6.1s)

sample340.0ms

Algorithm
intervals
Results
223.0ms250×body80valid
49.0ms69×body1280valid
20.0ms40×body640valid
7.0ms22×body320valid
1.0msbody160valid

simplify290.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune15.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 34.3b

Counts
2 → 1

localize26.0ms

Local error

Found 4 expressions with local error:

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

rewrite39.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)))
25.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series83.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)))
65.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify87.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0199428
1523391
21179387
32665387
45002387

prune106.0ms

Filtered
68 candidates to 54 candidates (20.6%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New65368
Fresh000
Picked011
Done000
Total65469

Merged error: 20.2b

Counts
69 → 4

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

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

series73.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
23.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)))

simplify63.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 3 (54.0ms)

IterNodesCost
0299556
1864496
22274481
35002479

prune114.0ms

Filtered
81 candidates to 60 candidates (25.9%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New78381
Fresh022
Picked011
Done011
Total78785

Merged error: 4.4b

Counts
85 → 7

localize15.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.8b
(* (atan2 x.im x.re) y.im)

rewrite14.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:
5.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)

series38.0ms

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

simplify64.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0224328
1723286
23027278
35002278

prune102.0ms

Filtered
62 candidates to 41 candidates (33.9%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New61162
Fresh044
Picked101
Done022
Total62769

Merged error: 4.4b

Counts
69 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

0.9b
(* (cbrt (atan2 x.im x.re)) (cbrt (atan2 x.im x.re)))
6.0b
(cbrt (atan2 x.im x.re))
6.0b
(cbrt (atan2 x.im x.re))
6.0b
(cbrt (atan2 x.im x.re))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
25×cbrt-prod
23×add-sqr-sqrt
15×add-cube-cbrt *-un-lft-identity
11×pow1
pow1/3
add-exp-log swap-sqr associate-*r* associate-*l*
add-cbrt-cube add-log-exp unswap-sqr
pow-prod-down pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod
Counts
4 → 73
Calls
4 calls:
5.0ms
(* (cbrt (atan2 x.im x.re)) (cbrt (atan2 x.im x.re)))
1.0ms
(cbrt (atan2 x.im x.re))
1.0ms
(cbrt (atan2 x.im x.re))
2.0ms
(cbrt (atan2 x.im x.re))

series49.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(* (cbrt (atan2 x.im x.re)) (cbrt (atan2 x.im x.re)))
13.0ms
(cbrt (atan2 x.im x.re))
10.0ms
(cbrt (atan2 x.im x.re))
11.0ms
(cbrt (atan2 x.im x.re))

simplify83.0ms

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 3 (77.0ms)

IterNodesCost
084426
1350374
22569342
35002335

prune102.0ms

Filtered
85 candidates to 56 candidates (34.1%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New84185
Fresh044
Picked101
Done022
Total85792

Merged error: 4.4b

Counts
92 → 7

regimes464.0ms

Accuracy

56.3% (6.8b remaining)

Error of 9.6b against oracle of 2.8b and baseline of 18.3b

bsearch283.0ms

Steps
ItersRangePoint
8
3.065218416585725e-49
2.85474721885261e-46
2.7537773299991192e-46
8
-3.98517332061362e-215
-1.1131410174225641e-218
-5.360679538500438e-216
8
-1.7162390217926309e-121
-2.569617010254377e-125
-3.363631805911557e-124
5
-7.709446683712433e-75
-2.2305918671351703e-75
-4.713360258067728e-75

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
06064
16664
26664

end0.0ms

sample3.6s

Algorithm
intervals
Results
1.3s1792×body1280valid
897.0ms8030×body80valid
628.0ms1290×body640valid
192.0ms559×body320valid
61.0ms267×body160valid

Profiling

Loading profile data...