Details

Time bar (total: 2.8s)

sample133.0ms

Algorithm
intervals
Results
11.0ms37×body2560valid
8.0ms166×body80valid
5.0ms20×body1280valid
4.0ms11×body5120valid
2.0ms11×body640valid
1.0msbody320valid
1.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: 42.3b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.6b
(+ (sqrt (+ (* re re) (* im im))) re)
30.4b
(sqrt (+ (* re re) (* im im)))

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

series41.0ms

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

simplify95.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (89.0ms)

IterNodesCost
0277428
11024399
23458393
35002391

prune111.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: 21.8b

Counts
64 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(- (sqrt (+ (* re re) (* im im))) re)
6.4b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
19.4b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
30.4b
(sqrt (+ (* re re) (* im im)))

rewrite39.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:
9.0ms
(- (sqrt (+ (* re re) (* im im))) re)
12.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)))

series45.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)))

simplify57.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
04401427
116011331
250021323

prune176.0ms

Filtered
132 candidates to 85 candidates (35.6%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1284132
Fresh224
Picked101
Done101
Total1326138

Merged error: 16.0b

Counts
138 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
6.4b
(sqrt (* 2.0 (* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))))
30.4b
(sqrt (+ (* re re) (* im im)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
38×add-sqr-sqrt
24×*-un-lft-identity associate-*r*
19×times-frac
16×add-cube-cbrt
13×pow1
add-exp-log add-cbrt-cube
sqrt-prod difference-of-squares
add-log-exp
sqrt-pow1 pow-prod-down distribute-lft-out--
sqrt-div associate-*r/ associate-*l*
flip3-- pow1/2 prod-exp associate-/r/ flip-- cbrt-unprod unswap-sqr
cbrt-undiv sub-neg rem-sqrt-square flip3-+ diff-log div-exp *-commutative flip-+ div-inv
Counts
4 → 86
Calls
4 calls:
14.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)))

series47.0ms

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

simplify56.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
0429793
11908714
25003713

prune125.0ms

Filtered
98 candidates to 72 candidates (26.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New96298
Fresh145
Picked011
Done000
Total977104

Merged error: 14.3b

Counts
104 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
26.7b
(sqrt (* 2.0 (pow im 2)))
30.4b
(sqrt (+ (* re re) (* im im)))

rewrite31.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:
15.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (* 2.0 (pow im 2)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series38.0ms

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

simplify48.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
03861461
114011391
250011364

prune163.0ms

Filtered
116 candidates to 81 candidates (30.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1124116
Fresh235
Picked101
Done011
Total1158123

Merged error: 9.6b

Counts
123 → 8

regimes152.0ms

Accuracy

58.1% (10.5b remaining)

Error of 21.4b against oracle of 10.9b and baseline of 36.0b

bsearch71.0ms

Steps
ItersRangePoint
10
1.7168059376205562e-68
2.1041336759107886e-57
2.3901845536880374e-59
9
-2.0001192140414813e+161
-1.6212848430265458e+153
-1.343225904371213e+154

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04222
14222

end0.0ms

sample1.3s

Algorithm
intervals
Results
293.0ms5521×body80valid
280.0ms941×body2560valid
160.0ms442×body5120valid
139.0ms580×body1280valid
57.0ms298×body640valid
22.0ms142×body320valid
9.0ms76×body160valid

Profiling

Loading profile data...