Details

Time bar (total: 4.7s)

sample43.0ms

Algorithm
intervals
Results
9.0ms31×body2560valid
9.0ms184×body80valid
4.0ms12×body5120valid
3.0ms13×body1280valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune4.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: 40.9b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.7b
(- (sqrt (+ (* re re) (* im im))) re)
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite22.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:
4.0ms
(+ (* re re) (* im im))
7.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series343.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
233.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify109.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (100.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune246.0ms

Filtered
66 candidates to 52 candidates (78.8%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New62466
Fresh000
Picked011
Done000
Total62567

Merged error: 17.9b

Counts
67 → 5

localize15.0ms

Local error

Found 4 expressions with local error:

0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
8.0b
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
19.6b
(/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite37.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)
12.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)))

series378.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
228.0ms
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))))
66.0ms
(/ (+ 0 (pow im 2)) (+ (sqrt (+ (* re re) (* im im))) re))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify55.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0397881
11554792
25001781

prune363.0ms

Filtered
91 candidates to 71 candidates (78.0%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New86591
Fresh123
Picked101
Done101
Total89796

Merged error: 9.2b

Counts
96 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ im (/ (+ (sqrt (+ (* re re) (* im im))) re) im))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
8.0b
(sqrt (* 2.0 (* 1 (/ im (/ (+ (sqrt (+ (* re re) (* im im))) re) im)))))
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
96×times-frac
80×*-un-lft-identity
55×add-sqr-sqrt
54×add-cube-cbrt
16×associate-/r*
13×distribute-lft-out
11×pow1
add-exp-log add-cbrt-cube
add-log-exp
div-inv
sqrt-pow1 sqrt-prod
cbrt-undiv sqrt-div div-exp pow-prod-down associate-/l*
flip3-+ pow1/2 associate-*r/ flip-+
+-commutative rem-sqrt-square frac-2neg clear-num sum-log associate-/r/
Counts
4 → 122
Calls
4 calls:
12.0ms
(/ im (/ (+ (sqrt (+ (* re re) (* im im))) re) im))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
12.0ms
(sqrt (* 2.0 (* 1 (/ im (/ (+ (sqrt (+ (* re re) (* im im))) re) im)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series373.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(/ im (/ (+ (sqrt (+ (* re re) (* im im))) re) im))
43.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
229.0ms
(sqrt (* 2.0 (* 1 (/ im (/ (+ (sqrt (+ (* re re) (* im im))) re) im)))))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify80.0ms

Algorithm
egg-herbie
Counts
134 → 134
Iterations

Useful iterations: 2 (65.0ms)

IterNodesCost
05771488
128061389
250011380

prune451.0ms

Filtered
134 candidates to 95 candidates (70.9%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1322134
Fresh156
Picked101
Done000
Total1347141

Merged error: 7.1b

Counts
141 → 7

localize15.0ms

Local error

Found 4 expressions with local error:

0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
8.0b
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
31.1b
(sqrt (+ (* re re) (* im im)))
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
12×pow1
add-sqr-sqrt *-un-lft-identity
sqrt-div sqrt-prod
add-cube-cbrt add-log-exp
sqrt-pow1
add-exp-log associate-*r/ add-cbrt-cube
flip3-+ pow1/2 pow-prod-down flip-+
rem-sqrt-square
+-commutative frac-times associate-*l/ sum-log distribute-lft-out
Counts
4 → 57
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
19.0ms
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series322.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
203.0ms
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
34.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify38.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0324604
11188571
25001571

prune317.0ms

Filtered
69 candidates to 59 candidates (85.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New68169
Fresh156
Picked011
Done000
Total69776

Merged error: 3.9b

Counts
76 → 7

regimes161.0ms

Accuracy

38.4% (21.1b remaining)

Error of 24.0b against oracle of 2.8b and baseline of 37.1b

bsearch225.0ms

Steps
ItersRangePoint
6
6.568970859414265e+96
5.17516796102767e+97
3.382417484031491e+97
8
8.62956116525734e-281
4.2885099102982085e-277
1.4514782576781544e-277
10
-4.977893346275263e-227
-2.460166924350784e-238
-2.799196132549358e-233
9
-6.142498275642612e+24
-7.189087651488887e+18
-6.049414038268037e+24

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05937
16437
26537
36537

end0.0ms

sample985.0ms

Algorithm
intervals
Results
281.0ms5981×body80valid
193.0ms720×body2560valid
107.0ms471×body1280valid
106.0ms317×body5120valid
50.0ms275×body640valid
20.0ms153×body320valid
10.0ms83×body160valid

Profiling

Loading profile data...