Details

Time bar (total: 2.8s)

sample38.0ms

Algorithm
intervals
Results
9.0ms184×body80valid
8.0ms28×body2560valid
4.0ms19×body1280valid
2.0msbody5120valid
2.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.7b

Counts
2 → 1

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.6b
(- (sqrt (+ (* re re) (* im im))) re)
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1 add-log-exp
*-un-lft-identity
add-cube-cbrt sqrt-prod
add-exp-log sqrt-div add-cbrt-cube
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square diff-log pow-prod-down sum-log distribute-lft-out--
Counts
4 → 54
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
12.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

series51.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* re re) (* im im))
24.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
14.0ms
(sqrt (+ (* re re) (* im im)))

simplify105.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (98.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune136.0ms

Filtered
52 candidates to 66 candidates (-26.9%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New58866
Fresh000
Picked101
Done000
Total59867

Merged error: 22.2b

Counts
67 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.3b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.3b
(sqrt (+ (* re re) (* im im)))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite41.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:
15.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.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)))

series26.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951

prune140.0ms

Filtered
72 candidates to 138 candidates (-91.7%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1353138
Fresh347
Picked011
Done000
Total1388146

Merged error: 22.2b

Counts
146 → 8

localize19.0ms

Local error

Found 4 expressions with local error:

14.9b
(- (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (sqrt (+ (* re re) (* im im))))))) re)
29.3b
(sqrt (+ (* re re) (* im im)))
29.3b
(sqrt (+ (* re re) (* im im)))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

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

series27.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(- (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (sqrt (+ (* re re) (* im im))))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0158715
1473608
21783574
35001571

prune141.0ms

Filtered
56 candidates to 69 candidates (-23.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New67269
Fresh156
Picked101
Done011
Total69877

Merged error: 22.2b

Counts
77 → 8

localize17.0ms

Local error

Found 4 expressions with local error:

4.5b
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
9.3b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.3b
(sqrt (+ (* re re) (* im im)))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
sqrt-prod add-log-exp
add-exp-log log-prod exp-prod sqrt-div exp-sum add-cbrt-cube
rem-sqrt-square log-div flip3-- sqrt-pow1 flip3-+ pow1/2 exp-diff flip-- flip-+ difference-of-squares
sub-neg diff-log log-pow rem-exp-log
Counts
4 → 61
Calls
4 calls:
15.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
14.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)))

series27.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
7.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify108.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 4 (100.0ms)

IterNodesCost
0191746
1442597
21109556
33525548
45002542

prune234.0ms

Filtered
58 candidates to 73 candidates (-25.9%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New69473
Fresh156
Picked101
Done011
Total711081

Merged error: 22.2b

Counts
81 → 10

regimes322.0ms

Accuracy

43.7% (12.2b remaining)

Error of 29.3b against oracle of 17.2b and baseline of 38.8b

bsearch1.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04836
14836

end0.0ms

sample1.1s

Algorithm
intervals
Results
326.0ms6068×body80valid
208.0ms676×body2560valid
114.0ms464×body1280valid
109.0ms294×body5120valid
57.0ms261×body640valid
23.0ms159×body320valid
8.0ms78×body160valid

Profiling

Loading profile data...