Details

Time bar (total: 5.7s)

sample20.0ms

Algorithm
intervals
Results
7.0ms66×body1280valid
3.0ms128×body80valid
3.0ms31×body640valid
1.0ms19×body320valid
1.0ms12×body160valid

simplify21.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

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 29.7b

localize6.0ms

Local error

Found 3 expressions with local error:

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

rewrite149.0ms

Algorithm
rewrite-expression-head
Rules
981×*-un-lft-identity
736×times-frac
585×add-sqr-sqrt
468×prod-diff
419×add-cube-cbrt
189×distribute-lft-out
94×associate-/r/
90×distribute-lft-out--
81×difference-of-squares
47×div-inv
29×flip3-+ flip-+
20×flip3-- flip--
18×fma-neg
associate-/r*
add-exp-log add-cbrt-cube associate-/l*
add-log-exp
pow1 expm1-log1p-u log1p-expm1-u
cbrt-undiv frac-2neg div-exp clear-num associate-/l/
sub-neg diff-log frac-sub
Counts
3 → 596
Calls
3 calls:
5.0ms
(/ x (+ x 1.0))
13.0ms
(/ (+ x 1.0) (- x 1.0))
73.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series199.0ms

Counts
3 → 9
Calls
3 calls:
33.0ms
(/ x (+ x 1.0))
39.0ms
(/ (+ x 1.0) (- x 1.0))
127.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify214.0ms

Algorithm
egg-herbie
Counts
605 → 605
Iterations

Useful iterations: 2 (81.0ms)

IterNodesCost
0120818366
1368713388
2500113292

prune754.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.2b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (+ x 1.0) (- x 1.0))
0.0b
(/ x (+ x 1.0))
0.0b
(expm1 (log1p (/ x (+ x 1.0))))
30.4b
(- (expm1 (log1p (/ x (+ x 1.0)))) (/ (+ x 1.0) (- x 1.0)))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
167×*-un-lft-identity
120×add-sqr-sqrt
93×times-frac
81×add-cube-cbrt
78×prod-diff
25×distribute-lft-out
19×difference-of-squares
18×distribute-lft-out--
10×associate-/r/
associate-/r*
add-exp-log add-cbrt-cube
associate-/l*
add-log-exp
flip3-- flip-- div-inv
pow1 expm1-log1p-u log1p-expm1-u
fma-neg
cbrt-undiv frac-2neg flip3-+ div-exp clear-num flip-+ associate-/l/ expm1-udef
associate--l- sub-neg expm1-log1p diff-log
Counts
4 → 192
Calls
4 calls:
11.0ms
(/ (+ x 1.0) (- x 1.0))
5.0ms
(/ x (+ x 1.0))
0.0ms
(expm1 (log1p (/ x (+ x 1.0))))
23.0ms
(- (expm1 (log1p (/ x (+ x 1.0)))) (/ (+ x 1.0) (- x 1.0)))

series476.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(/ (+ x 1.0) (- x 1.0))
40.0ms
(/ x (+ x 1.0))
135.0ms
(expm1 (log1p (/ x (+ x 1.0))))
264.0ms
(- (expm1 (log1p (/ x (+ x 1.0)))) (/ (+ x 1.0) (- x 1.0)))

simplify89.0ms

Algorithm
egg-herbie
Counts
204 → 204
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
07683961
128592696
250022485

prune299.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.2b

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 3.0 (/ 1 (pow x 3)))
0.2b
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
0.3b
(/ (- 1.0) (pow x 2))
7.6b
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

rewrite139.0ms

Algorithm
rewrite-expression-head
Rules
448×times-frac
372×add-sqr-sqrt
346×*-un-lft-identity
340×add-cube-cbrt
252×prod-diff
165×unpow-prod-down
123×distribute-lft-neg-in distribute-rgt-neg-in
84×fma-neg
57×sqr-pow
52×unpow2
41×neg-mul-1
40×associate-*r*
29×add-exp-log
11×cube-prod add-cbrt-cube
10×prod-exp associate-/l*
div-exp unswap-sqr
associate-/r*
pow1 div-inv add-log-exp
difference-of-squares
expm1-log1p-u pow-to-exp pow-exp log1p-expm1-u
cube-mult rec-exp 1-exp unpow3 associate-*l*
cbrt-undiv neg-sub0 div-sub cbrt-unprod fma-udef
associate--l- sub-neg flip3-- frac-2neg diff-log associate-*r/ distribute-frac-neg pow-prod-down clear-num un-div-inv *-commutative flip-- associate--r+ distribute-lft-out--
Counts
4 → 561
Calls
4 calls:
17.0ms
(* 3.0 (/ 1 (pow x 3)))
0.0ms
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
8.0ms
(/ (- 1.0) (pow x 2))
72.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

series184.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* 3.0 (/ 1 (pow x 3)))
83.0ms
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
25.0ms
(/ (- 1.0) (pow x 2))
35.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

simplify178.0ms

Algorithm
egg-herbie
Counts
573 → 573
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
0131412850
147146734
250016734

prune925.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ 1 (pow x 3))
0.1b
(* 3.0 (/ 1 (pow x 3)))
0.3b
(/ 1.0 (pow x 2))
7.6b
(- (- (+ (/ 1.0 (pow x 2)) (/ 3.0 x))) (* 3.0 (/ 1 (pow x 3))))

rewrite597.0ms

Algorithm
rewrite-expression-head
Rules
112×times-frac
103×*-un-lft-identity
95×add-sqr-sqrt
75×add-cube-cbrt
40×associate-*r*
38×add-exp-log
35×unpow-prod-down
23×cube-prod
20×associate-/r*
15×div-exp
14×fma-neg prod-diff
13×add-cbrt-cube sqr-pow
11×add-log-exp
10×distribute-lft-neg-in distribute-rgt-neg-in prod-exp
unswap-sqr
distribute-lft-out
cube-mult pow-to-exp unpow3 pow-exp
pow1 rec-exp 1-exp frac-sub distribute-neg-frac associate-/l*
expm1-log1p-u associate-*r/ un-div-inv log1p-expm1-u unpow2
cbrt-undiv diff-log associate-*l* div-inv
neg-mul-1 frac-2neg flip3-+ neg-log frac-add clear-num cbrt-unprod flip-+
associate--l- neg-sub0 sub-neg distribute-neg-in flip3-- pow-flip pow-prod-down associate--l+ sum-log *-commutative flip-- inv-pow
Counts
4 → 255
Calls
4 calls:
5.0ms
(/ 1 (pow x 3))
17.0ms
(* 3.0 (/ 1 (pow x 3)))
3.0ms
(/ 1.0 (pow x 2))
561.0ms
(- (- (+ (/ 1.0 (pow x 2)) (/ 3.0 x))) (* 3.0 (/ 1 (pow x 3))))

series134.0ms

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

simplify113.0ms

Algorithm
egg-herbie
Counts
267 → 267
Iterations

Useful iterations: 2 (93.0ms)

IterNodesCost
07951673
141161322
250021298

prune447.0ms

Pruning

5 alts after pruning (2 fresh and 3 done)

Merged error: 0.0b

regimes36.0ms

Accuracy

99.9% (0.0b remaining)

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

bsearch93.0ms

Steps
ItersRangePoint
9
251.47950061764826
104248118811.33417
11484.316894500327
10
-578421416.8415484
-0.03925098124715615
-10429.834944066473

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03917
14417
24417

end0.0ms

sample545.0ms

Algorithm
intervals
Results
187.0ms1767×body1280valid
102.0ms1219×body640valid
100.0ms4085×body80valid
49.0ms610×body320valid
14.0ms319×body160valid