Details

Time bar (total: 5.4s)

sample45.0ms

Algorithm
intervals
Results
12.0ms181×body80valid
8.0ms23×body2560valid
7.0ms16×body5120valid
5.0ms19×body1280valid
2.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

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 41.8b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
33.5b
(sqrt (+ (* re re) (* im im)))

rewrite34.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:
3.0ms
(+ (* re re) (* im im))
14.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
14.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series277.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
169.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify86.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (81.0ms)

IterNodesCost
0274428
1986391
23089381
35002379

prune185.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 22.0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.8b
(- (sqrt (+ (* re re) (* im im))) re)
6.9b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
23.4b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
33.5b
(sqrt (+ (* re re) (* im im)))

rewrite63.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:
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
14.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
22.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series348.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
193.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
72.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify58.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04471428
115821323
250011313

prune336.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 16.7b

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))
0.8b
(- (sqrt (+ (* re re) (* im im))) re)
6.9b
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))))
33.5b
(sqrt (+ (* re re) (* im im)))

rewrite113.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:
49.0ms
(* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series322.0ms

Counts
4 → 12
Calls
4 calls:
82.0ms
(* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
160.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify57.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
0487944
12188844
25001836

prune304.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 14.6b

localize23.0ms

Local error

Found 4 expressions with local error:

6.9b
(sqrt (* 2.0 (* (* (fabs im) (* (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))) (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))))) (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))))))
33.5b
(sqrt (+ (* re re) (* im im)))
33.5b
(sqrt (+ (* re re) (* im im)))
33.5b
(sqrt (+ (* re re) (* im im)))

rewrite955.0ms

Algorithm
rewrite-expression-head
Rules
22×pow1
16×associate-*r/
13×sqrt-div
12×cbrt-div
10×add-sqr-sqrt pow-prod-down sqrt-prod
sqrt-pow1
add-cube-cbrt *-un-lft-identity
frac-times associate-*l/
add-exp-log pow1/2 add-cbrt-cube add-log-exp
rem-sqrt-square flip3-+ flip-+
Counts
4 → 66
Calls
4 calls:
942.0ms
(sqrt (* 2.0 (* (* (fabs im) (* (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))) (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))))) (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))))))
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series268.0ms

Counts
4 → 12
Calls
4 calls:
160.0ms
(sqrt (* 2.0 (* (* (fabs im) (* (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))) (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))))) (cbrt (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re))))))
34.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify125.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (116.0ms)

IterNodesCost
0351884
11179837
24747830
35001814

prune303.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 14.6b

regimes98.0ms

Accuracy

46.8% (14.7b remaining)

Error of 28.1b against oracle of 13.4b and baseline of 41.0b

bsearch144.0ms

Steps
ItersRangePoint
9
1.603825051499465e+28
1.951400559087758e+35
2.730492367188375e+28
5
-3.524790249220998e-276
-1.535238933039543e-276
-1.5528913295942832e-276
8
-5.959551046543281e+102
-3.221986479554729e+98
-1.2223700059947939e+102

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06048
16048

end0.0ms

sample1.2s

Algorithm
intervals
Results
427.0ms6051×body80valid
242.0ms675×body2560valid
133.0ms466×body1280valid
125.0ms295×body5120valid
63.0ms277×body640valid
27.0ms149×body320valid
11.0ms87×body160valid