Details

Time bar (total: 3.7s)

sample28.0ms

Algorithm
intervals
Results
6.0ms181×body80valid
6.0ms29×body2560valid
3.0ms14×body5120valid
3.0ms18×body1280valid
1.0ms10×body640valid
0.0msbody160valid
0.0msbody320valid

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 (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 43.6b

Counts
2 → 1

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.8b
(+ (sqrt (+ (* re re) (* im im))) re)
32.7b
(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:
4.0ms
(+ (* re re) (* im im))
7.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

series292.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (* re re) (* im im))
179.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify89.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0274428
1986391
23089381
35002379

prune172.0ms

Filtered
63 candidates to 52 candidates (82.5%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New57663
Fresh000
Picked101
Done000
Total58664

Merged error: 20.2b

Counts
64 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(- (sqrt (+ (* re re) (* im im))) re)
7.9b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
20.6b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
32.7b
(sqrt (+ (* re re) (* im im)))

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

series357.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
197.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
74.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify62.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
04471428
115821323
250011313

prune325.0ms

Filtered
132 candidates to 85 candidates (64.4%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1293132
Fresh235
Picked011
Done000
Total1317138

Merged error: 16.5b

Counts
138 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
30.8b
(sqrt (* 2.0 (pow im 2)))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite30.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
associate-/r*
pow1 add-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
sqrt-div associate-/l*
flip3-- sqrt-pow1 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 → 104
Calls
4 calls:
13.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (* 2.0 (pow im 2)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series324.0ms

Counts
4 → 12
Calls
4 calls:
197.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
53.0ms
(- (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (* 2.0 (pow im 2)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
03931462
113761383
250011354

prune307.0ms

Filtered
116 candidates to 81 candidates (69.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1133116
Fresh145
Picked101
Done011
Total1158123

Merged error: 10.8b

Counts
123 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (* (sqrt 2.0) (fabs im)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
0.4b
(* (sqrt 2.0) (fabs im))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

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

series285.0ms

Counts
4 → 12
Calls
4 calls:
162.0ms
(/ (* (sqrt 2.0) (fabs im)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
52.0ms
(- (sqrt (+ (* re re) (* im im))) re)
31.0ms
(* (sqrt 2.0) (fabs im))
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
99 → 99
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
0450903
11991826
25002817

prune245.0ms

Filtered
99 candidates to 68 candidates (68.7%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New92799
Fresh246
Picked101
Done101
Total9611107

Merged error: 8.8b

Counts
107 → 11

regimes130.0ms

Accuracy

49.2% (15.2b remaining)

Error of 22.7b against oracle of 7.5b and baseline of 37.4b

bsearch164.0ms

Steps
ItersRangePoint
8
3.3685160830587113e-93
1.1118131948146322e-89
4.910461826111689e-93
10
-3.744556309116812e-103
-1.0905044694663493e-116
-1.1044329890532487e-116
10
-8.777387788220042e+125
-4.2027485674795273e+114
-8.15615961666859e+125

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05227
15227

end0.0ms

sample677.0ms

Algorithm
intervals
Results
199.0ms5987×body80valid
137.0ms690×body2560valid
78.0ms500×body1280valid
75.0ms295×body5120valid
36.0ms292×body640valid
14.0ms153×body320valid
5.0ms83×body160valid