Details

Time bar (total: 3.4s)

sample38.0ms

Algorithm
intervals
Results
12.0ms189×body80valid
8.0ms30×body2560valid
3.0ms15×body1280valid
3.0ms10×body5120valid
2.0ms10×body640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 35.2b

Counts
2 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

0.6b
(- (sqrt (+ (* re re) (* im im))) re)
26.5b
(sqrt (+ (* re re) (* im im)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
2 → 30
Calls
2 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series83.0ms

Counts
2 → 6
Calls
2 calls:
48.0ms
(- (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify81.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 4 (77.0ms)

IterNodesCost
0135228
1332216
2839212
32503211
45002210

prune102.0ms

Filtered
36 candidates to 28 candidates (77.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New30636
Fresh000
Picked101
Done000
Total31637

Merged error: 17.7b

Counts
37 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.4b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.5b
(sqrt (+ (* re re) (* im im)))
26.5b
(sqrt (+ (* re re) (* im im)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
51×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 126
Calls
4 calls:
16.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
15.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series156.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
48.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify47.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951

prune249.0ms

Filtered
138 candidates to 73 candidates (52.9%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1371138
Fresh145
Picked011
Done000
Total1386144

Merged error: 17.7b

Counts
144 → 6

localize18.0ms

Local error

Found 4 expressions with local error:

5.8b
(exp (log (sqrt (+ (* re re) (* im im)))))
16.4b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
26.5b
(sqrt (+ (* re re) (* im im)))
26.5b
(sqrt (+ (* re re) (* im im)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity sqrt-prod
pow1
log-prod exp-prod sqrt-div exp-sum add-log-exp
add-exp-log add-cbrt-cube
sqrt-pow1 flip3-+ pow1/2 log-pow flip-+
rem-sqrt-square log-div exp-diff
sub-neg flip3-- diff-log flip-- rem-exp-log
Counts
4 → 64
Calls
4 calls:
6.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
20.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series153.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
50.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify107.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 4 (97.0ms)

IterNodesCost
0196624
1441565
21120495
33440483
45002468

prune233.0ms

Filtered
76 candidates to 57 candidates (75.0%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New75176
Fresh044
Picked101
Done011
Total76682

Merged error: 17.7b

Counts
82 → 6

localize23.0ms

Local error

Found 4 expressions with local error:

16.4b
(- (* (sqrt (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
26.5b
(sqrt (+ (* re re) (* im im)))
27.4b
(cbrt (+ (* re re) (* im im)))
27.4b
(cbrt (+ (* re re) (* im im)))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
cbrt-prod add-log-exp
pow1
add-exp-log cbrt-div add-cbrt-cube
flip3-+ sqrt-prod flip-+
pow1/3 sqrt-div
sub-neg rem-sqrt-square flip3-- sqrt-pow1 pow1/2 diff-log flip--
Counts
4 → 53
Calls
4 calls:
22.0ms
(- (* (sqrt (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series319.0ms

Counts
4 → 12
Calls
4 calls:
97.0ms
(- (* (sqrt (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))
91.0ms
(cbrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))

simplify85.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 3 (77.0ms)

IterNodesCost
0243783
1826670
22707656
35001655

prune308.0ms

Filtered
65 candidates to 57 candidates (87.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New64165
Fresh044
Picked101
Done011
Total65671

Merged error: 17.7b

Counts
71 → 6

regimes184.0ms

Accuracy

54.3% (9.5b remaining)

Error of 27.5b against oracle of 18.0b and baseline of 38.9b

bsearch203.0ms

Steps
ItersRangePoint
5
1.4228083020126992e+227
3.0462269034550035e+227
1.439181536280825e+227
9
4.0160950957056723e+121
1.2392158031794936e+127
1.0745198052201521e+127
9
-6.526510436812601e-287
-1.6227712220164164e-292
-1.6409955006042464e-292
9
-9.054381491912354e+157
-5.630651790137533e+148
-1.2007831066903334e+154

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05736
15736

end0.0ms

sample872.0ms

Algorithm
intervals
Results
284.0ms6062×body80valid
175.0ms669×body2560valid
105.0ms485×body1280valid
92.0ms281×body5120valid
52.0ms295×body640valid
22.0ms144×body320valid
8.0ms64×body160valid