Details

Time bar (total: 4.4s)

sample33.0ms

Algorithm
intervals
Results
9.0ms190×body80valid
5.0ms19×body2560valid
4.0ms16×body1280valid
3.0ms10×body5120valid
2.0ms13×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 (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 41.4b

Counts
2 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

1.4b
(+ (sqrt (+ (* re re) (* im im))) re)
30.6b
(sqrt (+ (* re re) (* im im)))

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

series87.0ms

Counts
2 → 6
Calls
2 calls:
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify80.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (28.0ms)

IterNodesCost
0141198
1358186
2866182
32557181
45001181

prune118.0ms

Filtered
33 candidates to 29 candidates (87.9%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New26733
Fresh000
Picked101
Done000
Total27734

Merged error: 16.9b

Counts
34 → 7

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re)))
4.4b
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
21.9b
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt
18×add-exp-log add-cbrt-cube
16×*-un-lft-identity
13×times-frac
12×associate-*r*
10×pow1 add-cube-cbrt
sqrt-prod
associate-/r* difference-of-squares
prod-exp cbrt-unprod
cbrt-undiv div-exp associate-/r/ add-log-exp
sqrt-pow1 sqrt-div associate-*l* distribute-lft-out--
flip3-- pow1/2 associate-*r/ pow-prod-down flip-- div-inv unswap-sqr
rem-sqrt-square frac-2neg flip3-+ clear-num *-commutative flip-+ associate-/l*
Counts
4 → 89
Calls
4 calls:
13.0ms
(* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re)))
14.0ms
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
10.0ms
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series424.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re)))
220.0ms
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
81.0ms
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify55.0ms

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0449927
11985795
25001792

prune244.0ms

Filtered
101 candidates to 75 candidates (74.3%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New956101
Fresh516
Picked101
Done000
Total1017108

Merged error: 12.8b

Counts
108 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (- (sqrt (+ (* re re) (* im im))) re) im)
0.1b
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
4.4b
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
156×times-frac
144×add-sqr-sqrt
111×*-un-lft-identity
79×add-cube-cbrt
32×difference-of-squares
25×associate-/r*
20×sqrt-prod
16×distribute-lft-out--
11×add-exp-log add-cbrt-cube
associate-/l*
pow1
div-inv
cbrt-undiv div-exp add-log-exp
sqrt-pow1 sqrt-div
frac-2neg pow1/2 clear-num associate-/l/
rem-sqrt-square flip3-- flip3-+ div-sub associate-*r/ pow-prod-down associate-/r/ flip-- flip-+
Counts
4 → 175
Calls
4 calls:
9.0ms
(/ (- (sqrt (+ (* re re) (* im im))) re) im)
11.0ms
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
12.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series399.0ms

Counts
4 → 12
Calls
4 calls:
80.0ms
(/ (- (sqrt (+ (* re re) (* im im))) re) im)
79.0ms
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
203.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify93.0ms

Algorithm
egg-herbie
Counts
187 → 187
Iterations

Useful iterations: 2 (71.0ms)

IterNodesCost
06672309
132262168
250012159

prune411.0ms

Filtered
187 candidates to 124 candidates (66.3%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1834187
Fresh336
Picked011
Done000
Total1868194

Merged error: 9.7b

Counts
194 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

1.8b
(log (sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im)))))
3.6b
(exp (log (sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))))
4.4b
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
16×pow1
add-sqr-sqrt
add-cube-cbrt log-prod *-un-lft-identity log-pow
exp-prod sqrt-pow1
sqrt-prod
add-exp-log sqrt-div
pow1/2 exp-sum add-cbrt-cube add-log-exp
associate-*r/ pow-prod-down
log-div
rem-sqrt-square flip3-+ exp-diff rem-log-exp flip-+ rem-exp-log
Counts
4 → 64
Calls
4 calls:
13.0ms
(log (sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im)))))
15.0ms
(exp (log (sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))))
13.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
8.0ms
(sqrt (+ (* re re) (* im im)))

series769.0ms

Counts
4 → 12
Calls
4 calls:
317.0ms
(log (sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im)))))
202.0ms
(exp (log (sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))))
212.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify117.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 3 (108.0ms)

IterNodesCost
0333788
11070711
24152667
35001660

prune200.0ms

Filtered
76 candidates to 58 candidates (76.3%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New76076
Fresh066
Picked011
Done011
Total76884

Merged error: 9.7b

Counts
84 → 8

regimes163.0ms

Accuracy

51.6% (13.7b remaining)

Error of 25.5b against oracle of 11.8b and baseline of 40.1b

bsearch95.0ms

Steps
ItersRangePoint
8
4.570696158225727e-52
1.1612467142622228e-47
1.7249368426738814e-51
7
-1.551713512972122e+88
-3.787686207962144e+86
-8.400557775792221e+86

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04522
14522

end0.0ms

sample898.0ms

Algorithm
intervals
Results
286.0ms6036×body80valid
187.0ms672×body2560valid
111.0ms488×body1280valid
93.0ms276×body5120valid
52.0ms298×body640valid
22.0ms157×body320valid
7.0ms73×body160valid

Profiling

Loading profile data...