Details

Time bar (total: 2.5s)

sample35.0ms

Algorithm
intervals
Results
10.0ms198×body80valid
6.0ms20×body2560valid
4.0ms18×body1280valid
3.0msbody5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune7.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 36.8b

Counts
2 → 1

localize10.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)))
0.7b
(- (sqrt (+ (* re re) (* im im))) re)
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite23.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))
7.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series45.0ms

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

simplify106.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (99.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune123.0ms

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

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New59766
Fresh000
Picked011
Done000
Total59867

Merged error: 17.1b

Counts
67 → 8

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.8b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite39.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:
14.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)))

series27.0ms

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

simplify45.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
02611112
1935975
25001951

prune131.0ms

Filtered
73 candidates to 138 candidates (-89.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1371138
Fresh156
Picked011
Done101
Total1397146

Merged error: 17.1b

Counts
146 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

7.1b
(- (* (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite26.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:
14.0ms
(- (* (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (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)))

series51.0ms

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

simplify80.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (72.0ms)

IterNodesCost
0250734
1809669
22820647
35001632

prune125.0ms

Filtered
58 candidates to 69 candidates (-19.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New67269
Fresh145
Picked101
Done011
Total69776

Merged error: 17.1b

Counts
76 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(+ (sqrt (+ (* re re) (* im im))) re)
6.5b
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
21.8b
(/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
37×*-un-lft-identity
16×add-sqr-sqrt times-frac
15×add-cube-cbrt
11×distribute-lft-out
pow1
add-exp-log add-cbrt-cube add-log-exp
flip3-+ associate-/r* sqrt-prod flip-+ associate-/l*
sqrt-pow1 sqrt-div
pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative rem-sqrt-square frac-2neg associate-*r/ div-exp pow-prod-down clear-num sum-log div-inv
Counts
4 → 79
Calls
4 calls:
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
12.0ms
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
14.0ms
(/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series46.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
22.0ms
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
10.0ms
(/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0397881
11554792
25001781

prune135.0ms

Filtered
71 candidates to 91 candidates (-28.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New87491
Fresh235
Picked101
Done011
Total90898

Merged error: 6.9b

Counts
98 → 8

regimes247.0ms

Accuracy

45.4% (17.5b remaining)

Error of 24.4b against oracle of 6.9b and baseline of 39.0b

bsearch100.0ms

Steps
ItersRangePoint
11
3.4035273351764263e+51
8.246976593957678e+75
2.390761022208988e+74
10
1.4140249174076056e-267
6.936990504008018e-253
6.806954305782995e-253
4
-1.3456703098874792e-49
-8.526402393323715e-50
-9.274449180684028e-50
11
-5.400427999982575e+167
-9.829567355960734e+143
-1.2377299438606592e+153

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06740
17240
27340
37340

end0.0ms

sample1.0s

Algorithm
intervals
Results
298.0ms6058×body80valid
184.0ms648×body2560valid
115.0ms505×body1280valid
97.0ms288×body5120valid
52.0ms275×body640valid
20.0ms146×body320valid
7.0ms80×body160valid

Profiling

Loading profile data...