Details

Time bar (total: 3.8s)

sample36.0ms

Algorithm
intervals
Results
10.0ms189×body80valid
6.0ms21×body2560valid
5.0ms23×body1280valid
4.0ms12×body5120valid
1.0msbody640valid
0.0msbody160valid
0.0msbody320valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.3b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
28.5b
(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:
8.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)))

series251.0ms

Counts
3 → 9
Calls
3 calls:
166.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(- (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify76.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune141.0ms

Filtered
52 candidates to 42 candidates (80.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New46652
Fresh000
Picked101
Done000
Total47653

Merged error: 17.9b

Counts
53 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.9b
(- (* (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)))

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

series155.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
48.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify47.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951

prune259.0ms

Filtered
138 candidates to 74 candidates (53.6%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1371138
Fresh055
Picked101
Done000
Total1386144

Merged error: 17.9b

Counts
144 → 6

localize18.0ms

Local error

Found 4 expressions with local error:

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

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

series192.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(- (* (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify87.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (79.0ms)

IterNodesCost
0211717
1760652
22681633
35001618

prune275.0ms

Filtered
69 candidates to 57 candidates (82.6%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New68169
Fresh055
Picked011
Done000
Total68775

Merged error: 17.9b

Counts
75 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
6.0b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
20.7b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite39.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:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
11.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series343.0ms

Counts
4 → 12
Calls
4 calls:
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
193.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
67.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
04171078
11461985
25001978

prune249.0ms

Filtered
111 candidates to 78 candidates (70.3%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1056111
Fresh325
Picked101
Done101
Total1108118

Merged error: 6.3b

Counts
118 → 8

regimes129.0ms

Accuracy

51.1% (16.5b remaining)

Error of 23.3b against oracle of 6.9b and baseline of 40.5b

bsearch325.0ms

Steps
ItersRangePoint
11
1.9245887430533797e+94
5.58893751983651e+113
1.523986902974247e+108
9
1.3365158712397386e-160
4.579929683924865e-155
6.609119448413203e-159
8
-1.1988158349702404e-300
-2.5281410119806125e-304
-1.1809982177552133e-300
8
-7.945090232726338e-274
-1.6635196992340694e-277
-6.370511219197754e-277
8
-9.509273333275887e-116
-1.9559932207109768e-119
-6.361555833725335e-119
5
-3.8757153595728125e+31
-1.3413705027017693e+31
-2.2147762130159914e+31

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07348
17848
27948
37948

end0.0ms

sample959.0ms

Algorithm
intervals
Results
309.0ms6008×body80valid
204.0ms712×body2560valid
113.0ms493×body1280valid
105.0ms295×body5120valid
51.0ms269×body640valid
20.0ms147×body320valid
7.0ms76×body160valid