Details

Time bar (total: 4.0s)

sample25.0ms

Algorithm
intervals
Results
6.0ms192×body80valid
4.0ms22×body2560valid
3.0ms11×body5120valid
2.0ms16×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.1b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.2b
(+ (sqrt (+ (* re re) (* im im))) re)
28.5b
(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:
8.0ms
(+ (* re re) (* im im))
8.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)))

series293.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (* re re) (* im im))
183.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify87.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (82.0ms)

IterNodesCost
0274428
1986391
23089381
35002379

prune179.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 16.6b

localize13.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (sqrt (+ (* re re) (* im im))) re)
5.5b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
22.2b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite40.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))))
14.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series368.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(- (sqrt (+ (* re re) (* im im))) re)
202.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
77.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
04471428
115821323
250011313

prune322.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 12.9b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
5.5b
(sqrt (* 2.0 (* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))))
28.5b
(sqrt (+ (* re re) (* im im)))

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

series367.0ms

Counts
4 → 12
Calls
4 calls:
77.0ms
(* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(- (sqrt (+ (* re re) (* im im))) re)
203.0ms
(sqrt (* 2.0 (* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))))
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
0436794
11867706
25001703

prune255.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 10.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* 2.0 (* im im))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
28.5b
(sqrt (+ (* re re) (* im im)))
29.7b
(sqrt (* 2.0 (* 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
11×pow1
associate-/r*
add-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
sqrt-pow1 sqrt-div associate-/l*
pow-prod-down
flip3-- 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 → 106
Calls
4 calls:
13.0ms
(/ (sqrt (* 2.0 (* im im))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (* 2.0 (* im im)))

series328.0ms

Counts
4 → 12
Calls
4 calls:
201.0ms
(/ (sqrt (* 2.0 (* im im))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
52.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (* 2.0 (* im im)))

simplify45.0ms

Algorithm
egg-herbie
Counts
118 → 118
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
03961461
113891383
250021354

prune293.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 7.0b

regimes370.0ms

Accuracy

63.5% (10.5b remaining)

Error of 19.3b against oracle of 8.8b and baseline of 37.6b

bsearch125.0ms

Steps
ItersRangePoint
5
6.409367159269928e+131
1.4522094872280968e+132
6.476854518266015e+131
7
-4.1002396814977254e-299
-1.5855513606305376e-300
-1.612699741875562e-300
9
-9.80925815183762e+155
-2.7998546751214076e+150
-1.3474626627347847e+154

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05530
15530

end0.0ms

sample655.0ms

Algorithm
intervals
Results
191.0ms6018×body80valid
137.0ms717×body2560valid
74.0ms486×body1280valid
71.0ms277×body5120valid
33.0ms279×body640valid
13.0ms151×body320valid
4.0ms72×body160valid