Details

Time bar (total: 3.8s)

sample20.0ms

Algorithm
intervals
Results
5.0ms48×body1280valid
4.0ms52×body640valid
3.0ms134×body80valid
1.0ms14×body320valid
0.0msbody160valid

simplify20.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0126
1166
2196
3216
4276
5396
6586
7796
81076
91606
102776
113036
123036

prune1.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 28.6b

localize6.0ms

Local error

Found 2 expressions with local error:

0.0b
(/ (+ x 1.0) (- x 1.0))
2.3b
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

rewrite70.0ms

Algorithm
rewrite-expression-head
Rules
81×*-un-lft-identity
40×times-frac
35×add-sqr-sqrt
18×distribute-lft-out--
14×distribute-lft-out
13×add-cube-cbrt
difference-of-squares
associate-/r*
add-exp-log add-cbrt-cube associate-/l* add-log-exp
pow1 flip3-- associate-/r/ flip-- associate-/l/
cbrt-undiv sub-neg frac-2neg flip3-+ diff-log div-exp clear-num frac-sub flip-+ div-inv
Counts
2 → 71
Calls
2 calls:
10.0ms
(/ (+ x 1.0) (- x 1.0))
56.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series164.0ms

Counts
2 → 6
Calls
2 calls:
37.0ms
(/ (+ x 1.0) (- x 1.0))
127.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify151.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0317591
11003565
24508559
35003559

prune129.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.2b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))
0.0b
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
0.0b
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
2.3b
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

rewrite158.0ms

Algorithm
rewrite-expression-head
Rules
342×*-un-lft-identity
208×times-frac
152×add-sqr-sqrt
88×add-cube-cbrt
73×distribute-lft-out
72×swap-sqr
44×associate-*r* associate-*l*
36×distribute-lft-out--
28×add-exp-log add-cbrt-cube
21×difference-of-squares
18×pow1
16×associate-/r/
frac-sub
cbrt-undiv frac-times associate-*r/ div-exp associate-*l/ prod-exp cbrt-unprod div-inv add-log-exp unswap-sqr
flip3-- flip3-+ flip-- flip-+
pow2 pow-plus pow-prod-down pow-sqr *-commutative pow-prod-up
+-commutative sub-neg diff-log frac-add sum-log
Counts
4 → 259
Calls
4 calls:
47.0ms
(+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))
32.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
50.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
10.0ms
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

series386.0ms

Counts
4 → 12
Calls
4 calls:
95.0ms
(+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))
41.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
53.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
196.0ms
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

simplify55.0ms

Algorithm
egg-herbie
Counts
271 → 271
Iterations

Useful iterations: 1 (28.0ms)

IterNodesCost
011452720
150012532

prune385.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0.2b

localize12.0ms

Local error

Found 4 expressions with local error:

0.2b
(* 3.0 (+ (/ 1 x) (/ 1 (pow x 3))))
0.5b
(/ (- 1.0) (pow x 2))
0.9b
(/ 1 (pow x 3))
7.2b
(- (/ (- 1.0) (pow x 2)) (* 3.0 (+ (/ 1 x) (/ 1 (pow x 3)))))

rewrite200.0ms

Algorithm
rewrite-expression-head
Rules
131×times-frac
101×*-un-lft-identity
86×add-sqr-sqrt
84×add-cube-cbrt
45×unpow-prod-down
27×distribute-lft-neg-in distribute-rgt-neg-in
20×add-exp-log associate-/r*
16×associate-*r*
15×sqr-pow
13×associate-/l*
12×cube-prod
11×unpow2
10×unpow3 add-cbrt-cube
neg-mul-1 div-exp
div-inv distribute-lft-out
pow1 associate-*r/ add-log-exp
distribute-rgt-out
cube-mult pow-to-exp pow-exp
rec-exp 1-exp associate-*l* frac-sub
cbrt-undiv neg-sub0 distribute-rgt-in frac-2neg distribute-lft-in flip3-+ div-sub frac-add clear-num flip-+ associate--r+
associate--l- sub-neg flip3-- pow-flip diff-log distribute-frac-neg pow-prod-down distribute-rgt1-in prod-exp *-commutative flip-- cbrt-unprod inv-pow unswap-sqr
Counts
4 → 241
Calls
4 calls:
126.0ms
(* 3.0 (+ (/ 1 x) (/ 1 (pow x 3))))
6.0ms
(/ (- 1.0) (pow x 2))
4.0ms
(/ 1 (pow x 3))
53.0ms
(- (/ (- 1.0) (pow x 2)) (* 3.0 (+ (/ 1 x) (/ 1 (pow x 3)))))

series157.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(* 3.0 (+ (/ 1 x) (/ 1 (pow x 3))))
24.0ms
(/ (- 1.0) (pow x 2))
33.0ms
(/ 1 (pow x 3))
32.0ms
(- (/ (- 1.0) (pow x 2)) (* 3.0 (+ (/ 1 x) (/ 1 (pow x 3)))))

simplify141.0ms

Algorithm
egg-herbie
Counts
253 → 253
Iterations

Useful iterations: 2 (123.0ms)

IterNodesCost
07921535
146751275
250021261

prune381.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(/ 1.0 (pow x 2))
0.9b
(/ 3.0 (pow x 3))
9.0b
(+ (+ (/ 1.0 (pow x 2)) (/ 3.0 x)) (/ 3.0 (pow x 3)))
17.3b
(/ 0 (pow x 2))

rewrite208.0ms

Algorithm
rewrite-expression-head
Rules
87×times-frac
74×*-un-lft-identity
63×add-sqr-sqrt add-cube-cbrt
36×unpow-prod-down
28×associate-/r*
19×add-exp-log
12×cube-prod sqr-pow
10×add-cbrt-cube
div-exp associate-/l* add-log-exp
unpow2
distribute-lft-out
pow1 cube-mult unpow3 frac-add
cbrt-undiv pow-to-exp frac-2neg pow-exp clear-num sum-log div-inv
flip3-+ flip-+
+-commutative associate-+l+ div0
Counts
4 → 183
Calls
4 calls:
3.0ms
(/ 1.0 (pow x 2))
4.0ms
(/ 3.0 (pow x 3))
188.0ms
(+ (+ (/ 1.0 (pow x 2)) (/ 3.0 x)) (/ 3.0 (pow x 3)))
4.0ms
(/ 0 (pow x 2))

series89.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(/ 1.0 (pow x 2))
34.0ms
(/ 3.0 (pow x 3))
28.0ms
(+ (+ (/ 1.0 (pow x 2)) (/ 3.0 x)) (/ 3.0 (pow x 3)))
1.0ms
(/ 0 (pow x 2))

simplify85.0ms

Algorithm
egg-herbie
Counts
195 → 195
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
0591993
13223830
25003757

prune310.0ms

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 0b

regimes29.0ms

Accuracy

100% (0.0b remaining)

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

bsearch92.0ms

Steps
ItersRangePoint
10
5.968040026638966e-05
117627206.70733242
14618.947191620917
10
-64880754058.88788
-2.651420353119469e-05
-11755.062723959316

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03730
13730

end0.0ms

sample535.0ms

Algorithm
intervals
Results
189.0ms1719×body1280valid
107.0ms1224×body640valid
93.0ms4124×body80valid
39.0ms618×body320valid
14.0ms315×body160valid