Details

Time bar (total: 5.1s)

sample41.0ms

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

simplify4.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune9.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

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

rewrite15.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))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series18.0ms

Counts
3 → 9
Calls
3 calls:
5.0ms
(+ (* re re) (* im im))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify62.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (58.0ms)

IterNodesCost
0178275
1689252
22017248
35001246

prune497.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

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

rewrite41.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:
15.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)))

series31.0ms

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

simplify48.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune827.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

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

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

series51.0ms

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

simplify55.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (40.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

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

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

series44.0ms

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

simplify99.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

regimes302.0ms

Accuracy

55.9% (11.5b remaining)

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

bsearch81.0ms

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

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03930
13930

end0.0ms

sample1.1s

Algorithm
intervals
Results
312.0ms6010×body80valid
212.0ms690×body2560valid
124.0ms507×body1280valid
105.0ms272×body5120valid
64.0ms300×body640valid
21.0ms145×body320valid
7.0ms76×body160valid

Profiling

Loading profile data...