Details

Time bar (total: 5.6s)

sample83.0ms

Algorithm
intervals
Results
18.0ms184×body80valid
16.0ms28×body2560valid
12.0ms10×body640valid
11.0ms19×body1280valid
5.0msbody5120valid
1.0msbody320valid
1.0msbody160valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune7.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.7b

Counts
2 → 1

localize20.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)))

rewrite103.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:
16.0ms
(+ (* re re) (* im im))
46.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
22.0ms
(- (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (+ (* re re) (* im im)))

series118.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(+ (* re re) (* im im))
45.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
48.0ms
(sqrt (+ (* re re) (* im im)))

simplify175.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (165.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune225.0ms

Filtered
66 candidates to 52 candidates (21.2%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New58866
Fresh000
Picked101
Done000
Total59867

Merged error: 22.2b

Counts
67 → 8

localize29.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)))

rewrite118.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:
45.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
50.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)))

series49.0ms

Counts
4 → 12
Calls
4 calls:
13.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)
11.0ms
(sqrt (+ (* re re) (* im im)))
11.0ms
(sqrt (+ (* re re) (* im im)))

simplify100.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
02611112
1935975
25001951

prune555.0ms

Filtered
138 candidates to 72 candidates (47.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1353138
Fresh347
Picked011
Done000
Total1388146

Merged error: 22.2b

Counts
146 → 8

localize76.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)))

rewrite124.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:
70.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)
16.0ms
(sqrt (+ (* re re) (* im im)))
20.0ms
(sqrt (+ (* re re) (* im im)))
16.0ms
(sqrt (+ (* re re) (* im im)))

series52.0ms

Counts
4 → 12
Calls
4 calls:
18.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)
11.0ms
(sqrt (+ (* re re) (* im im)))
11.0ms
(sqrt (+ (* re re) (* im im)))
11.0ms
(sqrt (+ (* re re) (* im im)))

simplify96.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0158715
1473608
21783574
35001571

prune232.0ms

Filtered
69 candidates to 56 candidates (18.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New67269
Fresh156
Picked101
Done011
Total69877

Merged error: 22.2b

Counts
77 → 8

localize28.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)))

rewrite65.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:
26.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
23.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
7.0ms
(sqrt (+ (* re re) (* im im)))

series43.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
12.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
9.0ms
(sqrt (+ (* re re) (* im im)))
9.0ms
(sqrt (+ (* re re) (* im im)))

simplify190.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 4 (177.0ms)

IterNodesCost
0191746
1442597
21109556
33525548
45002542

prune194.0ms

Filtered
73 candidates to 58 candidates (20.5%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New69473
Fresh156
Picked101
Done011
Total711081

Merged error: 22.2b

Counts
81 → 10

regimes848.0ms

Accuracy

43.7% (12.2b remaining)

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

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04836
14836

end0.0ms

sample2.0s

Algorithm
intervals
Results
629.0ms6068×body80valid
391.0ms676×body2560valid
245.0ms464×body1280valid
189.0ms294×body5120valid
86.0ms261×body640valid
47.0ms159×body320valid
13.0ms78×body160valid

Profiling

Loading profile data...