Details

Time bar (total: 4.2s)

sample34.0ms

Algorithm
intervals
Results
9.0ms190×body80valid
8.0ms30×body2560valid
3.0ms15×body1280valid
3.0msbody5120valid
2.0ms10×body640valid
0.0msbody320valid

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: 37.7b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(- (sqrt (+ (* re re) (* im im))) re)
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
30.6b
(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:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(sqrt (+ (* re re) (* im im)))

series341.0ms

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

simplify91.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (85.0ms)

IterNodesCost
0234381
1812362
23077355
35001353

prune144.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: 18.2b

Counts
53 → 6

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))))
0.4b
(* (sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))) (sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))))
30.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
82×sqrt-pow1
67×pow1
37×sqrt-prod
32×sqrt-div
30×add-sqr-sqrt
23×pow-prod-down
22×pow1/2
16×associate-*r/
15×add-cube-cbrt *-un-lft-identity
14×pow-prod-up
swap-sqr
pow-sqr
flip3-- associate-*r* associate-*l* flip--
add-exp-log add-cbrt-cube
frac-times add-log-exp unswap-sqr
rem-sqrt-square
flip3-+ associate-*l/ flip-+
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 128
Calls
4 calls:
9.0ms
(sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))))
24.0ms
(* (sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))) (sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series551.0ms

Counts
4 → 12
Calls
4 calls:
227.0ms
(sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))))
249.0ms
(* (sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))) (sqrt (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))))
36.0ms
(sqrt (+ (* re re) (* im im)))
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify63.0ms

Algorithm
egg-herbie
Counts
140 → 140
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
04211366
118131252
250021197

prune319.0ms

Filtered
140 candidates to 79 candidates (56.4%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1400140
Fresh055
Picked011
Done000
Total1406146

Merged error: 18.2b

Counts
146 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

11.0b
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
30.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite38.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:
24.0ms
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (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)))

series162.0ms

Counts
4 → 12
Calls
4 calls:
48.0ms
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
42.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify143.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 4 (136.0ms)

IterNodesCost
0148643
1378541
21206463
34691456
45001450

prune223.0ms

Filtered
69 candidates to 56 candidates (81.2%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New67269
Fresh044
Picked011
Done011
Total67875

Merged error: 18.2b

Counts
75 → 8

localize18.0ms

Local error

Found 4 expressions with local error:

11.0b
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
30.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite33.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:
20.0ms
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (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)))

series166.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify142.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 4 (135.0ms)

IterNodesCost
0148643
1378541
21206463
34691456
45001450

prune252.0ms

Filtered
69 candidates to 58 candidates (84.1%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New67269
Fresh055
Picked011
Done022
Total671077

Merged error: 18.2b

Counts
77 → 10

regimes396.0ms

Accuracy

58.3% (8.6b remaining)

Error of 26.3b against oracle of 17.8b and baseline of 38.4b

bsearch96.0ms

Steps
ItersRangePoint
9
-3.726832345198518e-301
-5.5837829303726255e-306
-2.805428795031093e-305
7
-3.446092505479231e+101
-1.5233748944127634e+99
-4.710851114955975e+99

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04132
14132

end0.0ms

sample873.0ms

Algorithm
intervals
Results
280.0ms6039×body80valid
200.0ms739×body2560valid
98.0ms447×body1280valid
85.0ms270×body5120valid
48.0ms278×body640valid
18.0ms146×body320valid
7.0ms81×body160valid

Profiling

Loading profile data...