Details

Time bar (total: 2.8s)

sample34.0ms

Algorithm
intervals
Results
10.0ms197×body80valid
5.0ms18×body2560valid
3.0ms14×body1280valid
3.0msbody5120valid
2.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.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: 37.5b

Counts
2 → 1

localize15.0ms

Local error

Found 3 expressions with local error:

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

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
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)))

series37.0ms

Counts
3 → 9
Calls
3 calls:
23.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)))

simplify92.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0234381
1812362
23077355
35001353

prune103.0ms

Filtered
52 candidates to 42 candidates (19.2%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New46652
Fresh000
Picked101
Done000
Total47653

Merged error: 15.9b

Counts
53 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite34.0ms

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

series51.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(sqrt (- (sqrt (+ (* re re) (* im im))) re))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
22.0ms
(* (sqrt 2.0) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify42.0ms

Algorithm
egg-herbie
Counts
95 → 95
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0322811
11273781
25001767

prune123.0ms

Filtered
95 candidates to 67 candidates (29.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New94195
Fresh055
Picked011
Done000
Total947101

Merged error: 15.9b

Counts
101 → 7

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.6b
(- (* (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)))

rewrite42.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)))
5.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)))))
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)))

simplify46.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
02611112
1935975
25001951

prune264.0ms

Filtered
138 candidates to 75 candidates (45.7%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1380138
Fresh055
Picked011
Done011
Total1387145

Merged error: 15.9b

Counts
145 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
5.2b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
21.5b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity
32×times-frac
25×add-sqr-sqrt
24×add-cube-cbrt
15×unpow-prod-down
10×distribute-lft-out
add-exp-log
pow1 associate-/l*
add-cbrt-cube add-log-exp
unpow2 sqr-pow
associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div div-exp flip-+
pow1/2 associate-/r/
cbrt-undiv +-commutative pow-to-exp rem-sqrt-square frac-2neg associate-*r/ pow-prod-down pow-exp clear-num sum-log div-inv
Counts
4 → 99
Calls
4 calls:
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
10.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series47.0ms

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

simplify51.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
04121076
11494991
25002987

prune142.0ms

Filtered
111 candidates to 78 candidates (29.7%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1065111
Fresh134
Picked101
Done022
Total10810118

Merged error: 7.1b

Counts
118 → 10

regimes359.0ms

Accuracy

48.4% (16.5b remaining)

Error of 23.3b against oracle of 6.8b and baseline of 38.7b

bsearch133.0ms

Steps
ItersRangePoint
10
7.113085883623841e+50
1.078960105470046e+63
8.652791266125621e+60
10
4.081936154592251e-145
7.407484477097181e-132
4.288589544984824e-145
10
-1.1848656664474683e-136
-8.228269418273186e-150
-8.332553808951539e-150
3
-1.0401647864543139e-36
-7.462749473791532e-37
-1.021419081690422e-36
10
-1.2018840913203397e+174
-2.0456985869433597e+161
-2.0689817943266104e+161

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07651
18151
28251
38251

end0.0ms

sample1.0s

Algorithm
intervals
Results
307.0ms6008×body80valid
210.0ms718×body2560valid
128.0ms527×body1280valid
96.0ms265×body5120valid
51.0ms271×body640valid
20.0ms145×body320valid
6.0ms66×body160valid

Profiling

Loading profile data...