Details

Time bar (total: 2.8s)

sample43.0ms

Algorithm
intervals
Results
8.0ms168×body80valid
7.0ms27×body2560valid
4.0ms20×body1280valid
4.0ms13×body5120valid
3.0ms19×body640valid
1.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0228
1248
2248

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

Counts
2 → 1

localize11.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))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
33.9b
(sqrt (+ (* re re) (* im im)))

rewrite22.0ms

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

series45.0ms

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

simplify99.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (93.0ms)

IterNodesCost
0277428
11024399
23458393
35002391

prune121.0ms

Filtered
63 candidates to 52 candidates (17.5%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New58563
Fresh000
Picked011
Done000
Total58664

Merged error: 24.9b

Counts
64 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (sqrt (+ (* re re) (* im im))) re)
6.2b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
25.8b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
33.9b
(sqrt (+ (* re re) (* im im)))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
69×add-sqr-sqrt
48×*-un-lft-identity times-frac
28×add-cube-cbrt
21×unpow-prod-down
20×difference-of-squares
14×sqrt-prod
10×distribute-lft-out--
add-exp-log
pow1 associate-/l*
unpow2 sqr-pow
associate-/r* add-cbrt-cube add-log-exp
sqrt-pow1 sqrt-div div-exp
flip3-- pow1/2 associate-/r/ flip--
cbrt-undiv pow-to-exp sub-neg rem-sqrt-square frac-2neg flip3-+ diff-log associate-*r/ pow-prod-down pow-exp clear-num flip-+ div-inv
Counts
4 → 120
Calls
4 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
13.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)))

series47.0ms

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

simplify59.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
04401427
116011331
250021323

prune191.0ms

Filtered
132 candidates to 85 candidates (35.6%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1275132
Fresh224
Picked101
Done101
Total1317138

Merged error: 20.4b

Counts
138 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
0.1b
(- (sqrt (+ (* re re) (* im im))) re)
6.2b
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
33.9b
(sqrt (+ (* re re) (* im im)))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
138×times-frac
121×add-sqr-sqrt
94×*-un-lft-identity
68×add-cube-cbrt
26×difference-of-squares
22×associate-/r*
17×sqrt-prod
13×distribute-lft-out--
add-exp-log add-cbrt-cube
pow1
add-log-exp
div-inv
cbrt-undiv sqrt-pow1 sqrt-div div-exp associate-/l*
pow1/2
sub-neg rem-sqrt-square flip3-- frac-2neg flip3-+ diff-log associate-*r/ pow-prod-down clear-num associate-/r/ flip-- flip-+
Counts
4 → 148
Calls
4 calls:
11.0ms
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
12.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series49.0ms

Counts
4 → 12
Calls
4 calls:
11.0ms
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
25.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify88.0ms

Algorithm
egg-herbie
Counts
160 → 160
Iterations

Useful iterations: 2 (69.0ms)

IterNodesCost
06431958
130821844
250021831

prune179.0ms

Filtered
160 candidates to 105 candidates (34.4%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1573160
Fresh246
Picked011
Done000
Total1598167

Merged error: 16.7b

Counts
167 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (sqrt (+ (* re re) (* im im))) re)
0.2b
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
32.3b
(sqrt (* 2.0 (pow im 2)))
33.9b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt sqrt-prod
37×*-un-lft-identity
36×times-frac
25×add-cube-cbrt
12×difference-of-squares
associate-/r*
pow1 add-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
sqrt-div associate-/l*
flip3-- sqrt-pow1 pow1/2 associate-/r/ flip--
cbrt-undiv sub-neg rem-sqrt-square sqrt-undiv frac-2neg flip3-+ diff-log div-exp clear-num flip-+ div-inv
Counts
4 → 104
Calls
4 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
12.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
3.0ms
(sqrt (* 2.0 (pow im 2)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series39.0ms

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

simplify50.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
03861461
114011391
250011364

prune170.0ms

Filtered
116 candidates to 81 candidates (30.2%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1142116
Fresh066
Picked101
Done011
Total1159124

Merged error: 13.0b

Counts
124 → 9

regimes168.0ms

Accuracy

53.2% (11.5b remaining)

Error of 23.0b against oracle of 11.4b and baseline of 36.1b

bsearch104.0ms

Steps
ItersRangePoint
10
160641522886.7463
8.565987169494656e+25
170494105449.52274
7
1.3770814234996415e-63
2.135859847469984e-61
4.6543446158022345e-63
7
7.385488744925596e-118
7.805537377269367e-116
1.544391144474447e-116
10
-1.9731800516709207e+159
-1.4515475039626118e+147
-1.3278651885174792e+154

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05635
15635

end0.0ms

sample1.1s

Algorithm
intervals
Results
275.0ms5471×body80valid
263.0ms958×body2560valid
142.0ms413×body5120valid
134.0ms595×body1280valid
56.0ms317×body640valid
22.0ms165×body320valid
7.0ms81×body160valid

Profiling

Loading profile data...