Details

Time bar (total: 2.4s)

sample34.0ms

Algorithm
intervals
Results
9.0ms195×body80valid
5.0ms18×body2560valid
4.0ms17×body1280valid
3.0ms10×body5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.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: 37.9b

Counts
2 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite12.0ms

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

series14.0ms

Counts
2 → 6
Calls
2 calls:
8.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify80.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (27.0ms)

IterNodesCost
0141198
1358186
2866182
32557181
45001181

prune75.0ms

Filtered
33 candidates to 29 candidates (12.1%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New28533
Fresh000
Picked101
Done000
Total29534

Merged error: 15.9b

Counts
34 → 5

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.3b
(sqrt (+ (* re re) (* im im)))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite43.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)))))
15.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)))

series29.0ms

Counts
4 → 12
Calls
4 calls:
9.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)))

simplify49.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune132.0ms

Filtered
136 candidates to 74 candidates (45.6%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1351136
Fresh044
Picked101
Done000
Total1365141

Merged error: 15.9b

Counts
141 → 5

localize11.0ms

Local error

Found 4 expressions with local error:

0.2b
(- (sqrt (+ (* re re) (* im im))) re)
4.8b
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
21.4b
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

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

series52.0ms

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

simplify43.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0362695
11503628
25001624

prune131.0ms

Filtered
83 candidates to 64 candidates (22.9%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New78583
Fresh224
Picked101
Done000
Total81788

Merged error: 12.4b

Counts
88 → 7

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
0.2b
(- (sqrt (+ (* re re) (* im im))) re)
4.8b
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite46.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)
16.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series48.0ms

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

simplify90.0ms

Algorithm
egg-herbie
Counts
160 → 160
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
06431958
130821844
250021831

prune156.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: 10.0b

Counts
167 → 8

regimes266.0ms

Accuracy

51.2% (14.1b remaining)

Error of 26.0b against oracle of 11.9b and baseline of 40.8b

bsearch34.0ms

Steps
ItersRangePoint
8
6.275965676863823e-56
6.73995892514698e-53
8.722237925023642e-55
4
-1.8215798574764598e+151
-1.0517132200168235e+151
-1.2283164429326669e+151

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03920
13920

end0.0ms

sample971.0ms

Algorithm
intervals
Results
286.0ms6006×body80valid
195.0ms727×body2560valid
121.0ms527×body1280valid
88.0ms266×body5120valid
44.0ms254×body640valid
19.0ms146×body320valid
7.0ms74×body160valid

Profiling

Loading profile data...