Details

Time bar (total: 5.9s)

sample37.0ms

Algorithm
intervals
Results
9.0ms198×body80valid
6.0ms21×body2560valid
4.0ms17×body1280valid
3.0ms10×body5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

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

Counts
2 → 1

localize15.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(+ (sqrt (+ (* re re) (* im im))) re)
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite16.0ms

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

series138.0ms

Counts
3 → 9
Calls
3 calls:
33.0ms
(+ (* re re) (* im im))
60.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
44.0ms
(sqrt (+ (* re re) (* im im)))

simplify63.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (58.0ms)

IterNodesCost
0178275
1689252
22017248
35001246

prune289.0ms

Filtered
47 candidates to 38 candidates (19.1%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New41647
Fresh000
Picked101
Done000
Total42648

Merged error: 15.4b

Counts
48 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.8b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.7b
(sqrt (+ (* re re) (* im im)))
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
18.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series201.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
61.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
50.0ms
(sqrt (+ (* re re) (* im im)))
45.0ms
(sqrt (+ (* re re) (* im im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune819.0ms

Filtered
136 candidates to 74 candidates (45.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1360136
Fresh055
Picked011
Done000
Total1366142

Merged error: 15.4b

Counts
142 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

1.4b
(- (sqrt (+ (* re re) (* im im))) re)
5.4b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
20.2b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
26.7b
(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:
10.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)))

series496.0ms

Counts
4 → 12
Calls
4 calls:
62.0ms
(- (sqrt (+ (* re re) (* im im))) re)
292.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
96.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
45.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
04401427
116011331
250021323

prune1.1s

Filtered
132 candidates to 84 candidates (36.4%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1266132
Fresh224
Picked101
Done011
Total1299138

Merged error: 13.2b

Counts
138 → 9

localize14.0ms

Local error

Found 4 expressions with local error:

1.4b
(- (sqrt (+ (* re re) (* im im))) re)
5.4b
(sqrt (* 2.0 (* (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))))))
26.7b
(sqrt (+ (* re re) (* im im)))
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite38.0ms

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

series460.0ms

Counts
4 → 12
Calls
4 calls:
64.0ms
(- (sqrt (+ (* re re) (* im im))) re)
297.0ms
(sqrt (* 2.0 (* (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))))))
50.0ms
(sqrt (+ (* re re) (* im im)))
48.0ms
(sqrt (+ (* re re) (* im im)))

simplify100.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 3 (92.0ms)

IterNodesCost
0287589
11003559
23783555
35001553

prune605.0ms

Filtered
72 candidates to 57 candidates (20.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New69372
Fresh347
Picked101
Done011
Total73881

Merged error: 11.1b

Counts
81 → 8

regimes278.0ms

Accuracy

55.9% (11.5b remaining)

Error of 22.6b against oracle of 11.1b and baseline of 37.1b

bsearch85.0ms

Steps
ItersRangePoint
5
2.2866843337900248e+77
5.514542683406611e+77
5.074607332841625e+77
6
-2.3668867758909003e-262
-3.904420795897775e-263
-3.969766570937923e-263

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03930
13930

end0.0ms

sample967.0ms

Algorithm
intervals
Results
279.0ms6010×body80valid
187.0ms690×body2560valid
112.0ms507×body1280valid
89.0ms272×body5120valid
60.0ms300×body640valid
21.0ms145×body320valid
7.0ms76×body160valid

Profiling

Loading profile data...