Details

Time bar (total: 4.2s)

sample29.0ms

Algorithm
intervals
Results
6.0ms182×body80valid
5.0ms25×body2560valid
4.0ms22×body1280valid
3.0ms12×body5120valid
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: 38.5b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.0b
(+ (* re re) (* im im))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite69.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:
22.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(+ (* re re) (* im im))
31.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series256.0ms

Counts
4 → 12
Calls
4 calls:
156.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
24.0ms
(+ (* re re) (* im im))
40.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.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

prune186.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 14.3b

localize13.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (sqrt (+ (* re re) (* im im))) re)
5.7b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
18.4b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite123.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:
39.0ms
(- (sqrt (+ (* re re) (* im im))) re)
26.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
45.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
8.0ms
(sqrt (+ (* re re) (* im im)))

series313.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(- (sqrt (+ (* re re) (* im im))) re)
173.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
66.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
32.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04471428
115821323
250011313

prune305.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 10.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
5.7b
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite124.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:
42.0ms
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
38.0ms
(- (sqrt (+ (* re re) (* im im))) re)
28.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
8.0ms
(sqrt (+ (* re re) (* im im)))

series317.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
174.0ms
(sqrt (* 2.0 (/ im (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
32.0ms
(sqrt (+ (* re re) (* im im)))

simplify84.0ms

Algorithm
egg-herbie
Counts
160 → 160
Iterations

Useful iterations: 2 (66.0ms)

IterNodesCost
06501959
130451836
250011823

prune364.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 9.4b

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ im (/ (* 1 (- (sqrt (+ (* re re) (* im im))) re)) im))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
5.7b
(sqrt (* 2.0 (/ im (/ (* 1 (- (sqrt (+ (* re re) (* im im))) re)) im))))
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite137.0ms

Algorithm
rewrite-expression-head
Rules
33×times-frac
26×add-sqr-sqrt
23×*-un-lft-identity
21×add-cube-cbrt
16×add-exp-log
13×add-cbrt-cube
pow1
div-exp associate-/r*
add-log-exp
cbrt-undiv sqrt-prod div-inv
sqrt-pow1 sqrt-div associate-/l*
pow1/2 prod-exp difference-of-squares
sub-neg rem-sqrt-square flip3-- frac-2neg flip3-+ diff-log 1-exp associate-*r/ pow-prod-down clear-num associate-/r/ flip-- cbrt-unprod flip-+ distribute-lft-out--
Counts
4 → 91
Calls
4 calls:
26.0ms
(/ im (/ (* 1 (- (sqrt (+ (* re re) (* im im))) re)) im))
38.0ms
(- (sqrt (+ (* re re) (* im im))) re)
60.0ms
(sqrt (* 2.0 (/ im (/ (* 1 (- (sqrt (+ (* re re) (* im im))) re)) im))))
10.0ms
(sqrt (+ (* re re) (* im im)))

series311.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(/ im (/ (* 1 (- (sqrt (+ (* re re) (* im im))) re)) im))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
172.0ms
(sqrt (* 2.0 (/ im (/ (* 1 (- (sqrt (+ (* re re) (* im im))) re)) im))))
32.0ms
(sqrt (+ (* re re) (* im im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
0528991
12250885
25001878

prune249.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 9.4b

regimes199.0ms

Accuracy

62.4% (10.9b remaining)

Error of 22.7b against oracle of 11.8b and baseline of 40.7b

bsearch122.0ms

Steps
ItersRangePoint
10
2.277912944090519e+87
3.362634817406405e+98
3.115095166216806e+98
9
5.86275038882001e-276
1.2012581205029711e-270
2.987954177239911e-274
5
-2.1666926926305208e+135
-7.115247008094498e+134
-1.1661686244914884e+135

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05937
16137
26137

end0.0ms

sample745.0ms

Algorithm
intervals
Results
216.0ms6044×body80valid
143.0ms735×body2560valid
77.0ms467×body1280valid
69.0ms284×body5120valid
35.0ms264×body640valid
13.0ms140×body320valid
4.0ms66×body160valid