Details

Time bar (total: 2.6s)

sample34.0ms

Algorithm
intervals
Results
9.0ms196×body80valid
6.0ms24×body2560valid
3.0msbody5120valid
3.0ms12×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify6.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: 36.3b

Counts
2 → 1

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.0b
(+ (* re re) (* im im))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
26.2b
(sqrt (+ (* re re) (* im im)))

rewrite26.0ms

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

series41.0ms

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

simplify103.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (97.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune106.0ms

Filtered
66 candidates to 52 candidates (21.2%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New62466
Fresh000
Picked011
Done000
Total62567

Merged error: 19.0b

Counts
67 → 5

localize14.0ms

Local error

Found 4 expressions with local error:

1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
7.3b
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
20.3b
(/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))
26.2b
(sqrt (+ (* re re) (* im im)))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
37×*-un-lft-identity
16×add-sqr-sqrt times-frac
15×add-cube-cbrt
11×distribute-lft-out
pow1
add-exp-log add-cbrt-cube add-log-exp
flip3-+ associate-/r* sqrt-prod flip-+ associate-/l*
sqrt-pow1 sqrt-div
pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative rem-sqrt-square frac-2neg associate-*r/ div-exp pow-prod-down clear-num sum-log div-inv
Counts
4 → 79
Calls
4 calls:
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
14.0ms
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
12.0ms
(/ (+ 0 (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 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
10.0ms
(/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
0397881
11554792
25001781

prune152.0ms

Filtered
91 candidates to 71 candidates (22.0%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New87491
Fresh123
Picked101
Done101
Total90696

Merged error: 7.9b

Counts
96 → 6

localize16.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* 2.0 (+ 0 (pow im 2)))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
26.2b
(sqrt (+ (* re re) (* im im)))
29.0b
(sqrt (* 2.0 (+ 0 (pow im 2))))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
35×*-un-lft-identity
32×sqrt-prod
28×times-frac
24×add-sqr-sqrt
23×add-cube-cbrt
pow1 sqrt-div
associate-/r*
add-exp-log add-cbrt-cube distribute-lft-out add-log-exp
flip3-+ flip-+
associate-*r/ associate-/l*
sqrt-pow1
pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative rem-sqrt-square sqrt-undiv frac-2neg div-exp pow-prod-down clear-num sum-log div-inv
Counts
4 → 96
Calls
4 calls:
16.0ms
(/ (sqrt (* 2.0 (+ 0 (pow im 2)))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (* 2.0 (+ 0 (pow im 2))))

series38.0ms

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

simplify60.0ms

Algorithm
egg-herbie
Counts
108 → 108
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
04411342
116711268
250011234

prune193.0ms

Filtered
108 candidates to 80 candidates (25.9%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1044108
Fresh055
Picked101
Done000
Total1059114

Merged error: 2.2b

Counts
114 → 9

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (* (sqrt 2.0) (fabs im)) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
0.4b
(* (sqrt 2.0) (fabs im))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
26.2b
(sqrt (+ (* re re) (* im im)))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
18×*-un-lft-identity
17×add-sqr-sqrt
15×sqrt-prod
12×add-cube-cbrt
11×add-exp-log add-cbrt-cube
pow1 times-frac associate-/r*
associate-*l* add-log-exp
sqrt-div
flip3-+ associate-*r* flip-+ distribute-lft-out
cbrt-undiv div-exp prod-exp associate-/r/ cbrt-unprod unswap-sqr
+-commutative rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 pow-prod-down clear-num sum-log *-commutative div-inv associate-/l*
Counts
4 → 80
Calls
4 calls:
11.0ms
(/ (* (sqrt 2.0) (fabs im)) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
4.0ms
(* (sqrt 2.0) (fabs im))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series44.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(/ (* (sqrt 2.0) (fabs im)) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
4.0ms
(* (sqrt 2.0) (fabs im))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
0437805
12002734
25001725

prune235.0ms

Filtered
92 candidates to 66 candidates (28.3%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New85792
Fresh358
Picked101
Done000
Total8912101

Merged error: 0.4b

Counts
101 → 12

regimes209.0ms

Accuracy

44.3% (20.9b remaining)

Error of 21.3b against oracle of 0.4b and baseline of 37.9b

bsearch67.0ms

Steps
ItersRangePoint
9
1.4084025144316139e+88
1.3907891785976965e+93
1.294245882346397e+91
9
-2.173433833306078e-131
-1.2323979110488597e-139
-7.46472792011177e-134
4
-3299728841212.5835
-1664988039241.9263
-1969972166812.6543

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05931
16431
26531
36531

end0.0ms

sample964.0ms

Algorithm
intervals
Results
284.0ms6051×body80valid
182.0ms667×body2560valid
104.0ms466×body1280valid
95.0ms282×body5120valid
55.0ms294×body640valid
24.0ms167×body320valid
6.0ms73×body160valid

Profiling

Loading profile data...