Details

Time bar (total: 8.1s)

sample373.0ms

Algorithm
intervals
Results
33.0ms49×body1280valid
29.0ms263×body80valid
22.0ms47×body640valid
4.0ms11×body320valid
1.0msbody160valid

simplify36.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune17.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 32.6b

Counts
2 → 1

localize25.0ms

Local error

Found 4 expressions with local error:

1.0b
(* (atan2 x.im x.re) y.re)
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.6b
(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.re)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.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)))

series237.0ms

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

simplify71.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (12.0ms)

IterNodesCost
0189422
1491385
21112381
32385381
45001381

prune421.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New63568
Fresh000
Picked101
Done000
Total64569

Merged error: 17.1b

Counts
69 → 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.2b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.0b
(* (atan2 x.im x.re) y.im)
29.3b
(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)))

series223.0ms

Counts
4 → 12
Calls
4 calls:
87.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
84.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
16.0ms
(* (atan2 x.im x.re) y.im)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0280545
1825486
22165481
35001481

prune403.0ms

Filtered
81 candidates to 60 candidates (74.1%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New77481
Fresh134
Picked101
Done000
Total79786

Merged error: 3.9b

Counts
86 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (log (log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.re)
1.0b
(* (atan2 x.im x.re) y.im)
4.2b
(log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite17.0ms

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

series170.0ms

Counts
4 → 12
Calls
4 calls:
84.0ms
(* (log (log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.re)
15.0ms
(* (atan2 x.im x.re) y.im)
34.0ms
(log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify102.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (16.0ms)

IterNodesCost
0256510
1732441
21709432
33751432
45002432

prune407.0ms

Filtered
82 candidates to 59 candidates (72.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New81182
Fresh156
Picked011
Done000
Total82789

Merged error: 3.9b

Counts
89 → 7

localize29.0ms

Local error

Found 4 expressions with local error:

29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.6b
(cos (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite37.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-+
cos-sum
Counts
4 → 53
Calls
4 calls:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
24.0ms
(cos (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

series232.0ms

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

simplify62.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 4 (55.0ms)

IterNodesCost
0143602
1298546
2638546
31805546
45002543

prune444.0ms

Filtered
65 candidates to 56 candidates (86.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New63265
Fresh145
Picked101
Done011
Total65772

Merged error: 3.9b

Counts
72 → 7

regimes502.0ms

Accuracy

79.8% (6.3b remaining)

Error of 10.1b against oracle of 3.8b and baseline of 34.9b

bsearch399.0ms

Steps
ItersRangePoint
9
2.190530622938087e-76
2.4239314156889567e-70
6.384061532363716e-74
9
8.26523105319876e-204
8.747928736751176e-198
8.617207416529642e-198
11
-4.12462284493205e-301
9.914604343488792e-294
8.4964026544742e-311

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06658
17058
27058

end0.0ms

sample3.7s

Algorithm
intervals
Results
1.3s1958×body1280valid
816.0ms7966×body80valid
662.0ms1443×body640valid
212.0ms660×body320valid
71.0ms312×body160valid

Profiling

Loading profile data...