Details

Time bar (total: 3.5s)

sample26.0ms

Algorithm
intervals
Results
7.0ms200×body80valid
5.0ms26×body2560valid
2.0msbody5120valid
2.0ms12×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify8.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 (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.0b

Counts
2 → 1

localize13.0ms

Local error

Found 3 expressions with local error:

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

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

series266.0ms

Counts
3 → 9
Calls
3 calls:
172.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
43.0ms
(sqrt (+ (* re re) (* im im)))

simplify75.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune132.0ms

Filtered
52 candidates to 42 candidates (80.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New46652
Fresh000
Picked011
Done000
Total46753

Merged error: 17.0b

Counts
53 → 7

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
5.9b
(exp (log (sqrt (+ (* re re) (* im im)))))
13.5b
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
30.9b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
10×pow1 *-un-lft-identity
add-cube-cbrt log-prod exp-sum sqrt-prod
exp-prod sqrt-div add-log-exp
add-exp-log sqrt-pow1 add-cbrt-cube
pow1/2 log-pow difference-of-squares
log-div flip3-- flip3-+ exp-diff associate-*r/ flip-- flip-+
sub-neg rem-sqrt-square diff-log pow-prod-down rem-exp-log distribute-lft-out--
Counts
4 → 66
Calls
4 calls:
14.0ms
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
6.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
10.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series291.0ms

Counts
4 → 12
Calls
4 calls:
172.0ms
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
35.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
49.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify78.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0283630
1843573
22616551
35001542

prune195.0ms

Filtered
78 candidates to 56 candidates (71.8%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New74478
Fresh055
Picked101
Done011
Total751085

Merged error: 16.8b

Counts
85 → 10

localize13.0ms

Local error

Found 4 expressions with local error:

1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
5.1b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
21.7b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
30.9b
(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:
9.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)))

series350.0ms

Counts
4 → 12
Calls
4 calls:
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
198.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
68.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
04171078
11461985
25001978

prune271.0ms

Filtered
111 candidates to 78 candidates (70.3%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New1056111
Fresh358
Picked101
Done101
Total11011121

Merged error: 5.0b

Counts
121 → 11

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
5.1b
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
30.9b
(sqrt (+ (* re re) (* im im)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
20×add-sqr-sqrt
18×associate-*r*
14×add-cube-cbrt
13×pow1 times-frac
add-exp-log add-cbrt-cube
add-log-exp
sqrt-pow1 pow-prod-down sqrt-prod distribute-lft-out
flip3-+ sqrt-div associate-*r/ associate-*l* flip-+
pow1/2 prod-exp associate-/r/ cbrt-unprod unswap-sqr
cbrt-undiv +-commutative rem-sqrt-square div-exp sum-log *-commutative div-inv
Counts
4 → 77
Calls
4 calls:
13.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series351.0ms

Counts
4 → 12
Calls
4 calls:
68.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
198.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0428701
11831618
25002614

prune189.0ms

Filtered
89 candidates to 66 candidates (74.2%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New87289
Fresh2810
Picked101
Done000
Total9010100

Merged error: 4.4b

Counts
100 → 10

regimes190.0ms

Accuracy

41.5% (20.6b remaining)

Error of 25.8b against oracle of 5.2b and baseline of 40.3b

bsearch142.0ms

Steps
ItersRangePoint
10
3.49360888869625e+131
2.723523126945292e+144
6.205680054743451e+137
5
4.0291542564501787e-181
1.2228561371258793e-180
4.089276534834089e-181
3
3.7412437811481085e-298
4.965075808081927e-298
4.883498556383496e-298
6
-5.4082340853716294e-104
-5.091613400763011e-105
-2.393156389015936e-104

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05938
15938

end0.0ms

sample673.0ms

Algorithm
intervals
Results
198.0ms6000×body80valid
135.0ms694×body2560valid
82.0ms499×body1280valid
65.0ms262×body5120valid
39.0ms297×body640valid
15.0ms164×body320valid
5.0ms84×body160valid