Details

Time bar (total: 3.8s)

analyze626.0ms

Algorithm
search

sample26.0ms

Algorithm
intervals
Results
10.0ms256×body80valid
3.0ms73×body80invalid

simplify50.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0227
1557
21017
31827
43357
57317
618287
750017

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 31.5b

Counts
2 → 1

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* x x) (* y y))
4.1b
(- (+ (* x x) (* y y)) (* z z))
29.2b
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
10×add-log-exp
add-exp-log add-sqr-sqrt add-cbrt-cube
add-cube-cbrt *-un-lft-identity
times-frac associate-/l*
pow1 difference-of-squares
cbrt-undiv flip3-- diff-log div-exp sum-log flip-- associate-/l/
+-commutative sub-neg frac-2neg flip3-+ div-sub prod-exp associate--l+ clear-num associate-/r* cbrt-unprod flip-+ div-inv
Counts
3 → 52
Calls
3 calls:
4.0ms
(+ (* x x) (* y y))
5.0ms
(- (+ (* x x) (* y y)) (* z z))
9.0ms
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0))

series35.0ms

Counts
3 → 9
Calls
3 calls:
5.0ms
(+ (* x x) (* y y))
10.0ms
(- (+ (* x x) (* y y)) (* z z))
19.0ms
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0))

simplify36.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0337520
11492454
25001446

prune91.0ms

Filtered
46 candidates to 61 candidates (-32.6%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New56561
Fresh000
Picked101
Done000
Total57562

Merged error: 11.5b

Counts
62 → 5

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ y (/ (pow x 2) y))
0.2b
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ (pow z 2) y)))
9.3b
(/ (pow x 2) y)
9.9b
(/ (pow z 2) y)

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
54×add-sqr-sqrt
52×times-frac
47×*-un-lft-identity
40×add-cube-cbrt
25×unpow-prod-down
16×add-exp-log associate-/l*
10×associate-*r* add-cbrt-cube
unpow2 sqr-pow
pow1 div-exp associate-/r* add-log-exp
difference-of-squares
associate-*r/
distribute-rgt-in distribute-lft-in associate-*l*
cbrt-undiv pow-to-exp sub-neg frac-2neg flip3-+ pow-exp associate--l+ clear-num frac-sub flip-+ div-inv distribute-lft-out distribute-lft-out--
+-commutative flip3-- pow-prod-down prod-exp sum-log *-commutative flip-- cbrt-unprod unswap-sqr
Counts
4 → 145
Calls
4 calls:
9.0ms
(+ y (/ (pow x 2) y))
25.0ms
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ (pow z 2) y)))
5.0ms
(/ (pow x 2) y)
5.0ms
(/ (pow z 2) y)

series27.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(+ y (/ (pow x 2) y))
14.0ms
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ (pow z 2) y)))
3.0ms
(/ (pow x 2) y)
4.0ms
(/ (pow z 2) y)

simplify58.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0494902
11944815
25003809

prune244.0ms

Filtered
100 candidates to 157 candidates (-57.0%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1507157
Fresh314
Picked101
Done000
Total1548162

Merged error: 2.0b

Counts
162 → 8

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (+ y (/ x (/ y x))) (/ (pow z 2) y))
0.2b
(/ x (/ y x))
0.2b
(* 0.5 (- (+ y (/ x (/ y x))) (/ (pow z 2) y)))
9.9b
(/ (pow z 2) y)

rewrite66.0ms

Algorithm
rewrite-expression-head
Rules
107×times-frac
91×add-sqr-sqrt
75×*-un-lft-identity
65×add-cube-cbrt
16×add-exp-log associate-/r*
14×unpow-prod-down
13×add-cbrt-cube
11×associate-/l*
10×associate-*r* difference-of-squares
add-log-exp
pow1 div-exp div-inv unpow2 sqr-pow
cbrt-undiv associate-*r/ frac-sub distribute-lft-out--
distribute-rgt-in sub-neg distribute-lft-in associate-*l* associate--l+
flip3-- frac-2neg flip3-+ diff-log clear-num flip-- flip-+ distribute-lft-out
pow-to-exp pow-prod-down pow-exp prod-exp sum-log associate-/r/ *-commutative cbrt-unprod unswap-sqr
Counts
4 → 177
Calls
4 calls:
21.0ms
(- (+ y (/ x (/ y x))) (/ (pow z 2) y))
6.0ms
(/ x (/ y x))
28.0ms
(* 0.5 (- (+ y (/ x (/ y x))) (/ (pow z 2) y)))
5.0ms
(/ (pow z 2) y)

series33.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(- (+ y (/ x (/ y x))) (/ (pow z 2) y))
3.0ms
(/ x (/ y x))
14.0ms
(* 0.5 (- (+ y (/ x (/ y x))) (/ (pow z 2) y)))
3.0ms
(/ (pow z 2) y)

simplify91.0ms

Algorithm
egg-herbie
Counts
189 → 189
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
07131337
132851218
250021217

prune216.0ms

Filtered
125 candidates to 189 candidates (-51.2%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1872189
Fresh257
Picked101
Done000
Total1907197

Merged error: 0.3b

Counts
197 → 7

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (+ y (/ x (/ y x))) (* z (/ z y)))
0.2b
(/ x (/ y x))
0.2b
(* z (/ z y))
0.2b
(* 0.5 (- (+ y (/ x (/ y x))) (* z (/ z y))))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
85×times-frac
63×add-sqr-sqrt
56×add-cube-cbrt *-un-lft-identity
16×add-exp-log associate-*r* add-cbrt-cube
13×associate-/r*
associate-*r/ add-log-exp
pow1
associate-*l* div-inv
cbrt-undiv div-exp frac-sub
distribute-rgt-in sub-neg distribute-lft-in prod-exp associate--l+ cbrt-unprod associate-/l* unswap-sqr
flip3-- flip3-+ diff-log pow-prod-down *-commutative flip-- flip-+
frac-2neg clear-num sum-log associate-/r/
Counts
4 → 146
Calls
4 calls:
14.0ms
(- (+ y (/ x (/ y x))) (* z (/ z y)))
6.0ms
(/ x (/ y x))
6.0ms
(* z (/ z y))
17.0ms
(* 0.5 (- (+ y (/ x (/ y x))) (* z (/ z y))))

series36.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(- (+ y (/ x (/ y x))) (* z (/ z y)))
3.0ms
(/ x (/ y x))
4.0ms
(* z (/ z y))
17.0ms
(* 0.5 (- (+ y (/ x (/ y x))) (* z (/ z y))))

simplify89.0ms

Algorithm
egg-herbie
Counts
158 → 158
Iterations

Useful iterations: 1 (18.0ms)

IterNodesCost
06771092
13441992
25002992

prune117.0ms

Filtered
108 candidates to 158 candidates (-46.3%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1580158
Fresh066
Picked011
Done000
Total1587165

Merged error: 0.3b

Counts
165 → 7

regimes279.0ms

Accuracy

0% (0.1b remaining)

Error of 0.2b against oracle of 0.1b and baseline of 0.2b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0147
1147

end0.0ms

analyze818.0ms

Algorithm
search

sample691.0ms

Algorithm
intervals
Results
347.0ms8000×body80valid
117.0ms2839×body80invalid

Profiling

Loading profile data...