Details

Time bar (total: 2.4s)

sample35.0ms

Algorithm
intervals
Results
11.0ms215×body80valid
4.0ms14×body2560valid
3.0ms13×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody320valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune8.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

localize11.0ms

Local error

Found 3 expressions with local error:

0.1b
(- (sqrt (+ (* re re) (* im im))) re)
0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
29.5b
(sqrt (+ (* re re) (* im im)))

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

series37.0ms

Counts
3 → 9
Calls
3 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
23.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify89.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0234381
1812362
23077355
35001353

prune98.0ms

Filtered
52 candidates to 42 candidates (19.2%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New47552
Fresh000
Picked101
Done000
Total48553

Merged error: 19.7b

Counts
53 → 5

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
4.5b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.5b
(sqrt (+ (* re re) (* im im)))
29.5b
(sqrt (+ (* re re) (* im im)))

rewrite45.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:
17.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)))

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

simplify47.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951

prune130.0ms

Filtered
138 candidates to 75 candidates (45.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1371138
Fresh044
Picked011
Done000
Total1376143

Merged error: 19.7b

Counts
143 → 6

localize18.0ms

Local error

Found 4 expressions with local error:

4.5b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
5.1b
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
29.5b
(sqrt (+ (* re re) (* im im)))
29.5b
(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
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
16.0ms
(exp (log (- (* (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:
7.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
8.0ms
(exp (log (- (* (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)))

simplify110.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 4 (102.0ms)

IterNodesCost
0191746
1442597
21109556
33525548
45002542

prune119.0ms

Filtered
73 candidates to 58 candidates (20.5%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New72173
Fresh044
Picked011
Done011
Total72779

Merged error: 19.7b

Counts
79 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.4b
(+ (sqrt (+ (* re re) (* im im))) re)
3.1b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
26.7b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
29.5b
(sqrt (+ (* re re) (* im im)))

rewrite38.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))))
13.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series45.0ms

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

simplify57.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
04121076
11494991
25002987

prune148.0ms

Filtered
111 candidates to 78 candidates (29.7%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1065111
Fresh224
Picked101
Done112
Total1108118

Merged error: 4.0b

Counts
118 → 8

regimes249.0ms

Accuracy

53.9% (15.7b remaining)

Error of 20.2b against oracle of 4.6b and baseline of 38.6b

bsearch79.0ms

Steps
ItersRangePoint
7
6.276619355487581e-81
1.061442330952725e-79
2.6090407096667592e-80
9
-7.635555118378116e-156
-1.8688797322818147e-162
-2.986641789409103e-158
6
-1.1073122392559708e+51
-1.555450845220469e+50
-1.0908449105214407e+51

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05328
15828
25928
35928

end0.0ms

sample933.0ms

Algorithm
intervals
Results
357.0ms6672×body80valid
148.0ms494×body2560valid
77.0ms325×body1280valid
68.0ms181×body5120valid
34.0ms182×body640valid
13.0ms93×body320valid
5.0ms53×body160valid

Profiling

Loading profile data...