Details

Time bar (total: 5.8s)

sample21.0ms

Algorithm
intervals
Results
7.0ms67×body1280valid
3.0ms128×body80valid
3.0ms33×body640valid
1.0ms19×body320valid
0.0msbody160valid

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

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 30.3b

localize6.0ms

Local error

Found 3 expressions with local error:

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

rewrite157.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))
77.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series202.0ms

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

simplify206.0ms

Algorithm
egg-herbie
Counts
605 → 605
Iterations

Useful iterations: 2 (76.0ms)

IterNodesCost
0120818366
1368713388
2500113292

prune719.0ms

Filtered
605 candidates to 217 candidates (35.9%)
Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (+ 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.8b
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

rewrite120.0ms

Algorithm
rewrite-expression-head
Rules
329×*-un-lft-identity
212×times-frac
173×add-sqr-sqrt
99×add-cube-cbrt
72×swap-sqr
62×distribute-lft-out
44×associate-*r* associate-*l*
37×distribute-lft-out--
30×add-exp-log add-cbrt-cube
26×difference-of-squares
18×pow1 associate-/r/
cbrt-undiv div-exp frac-sub div-inv
frac-times associate-*r/ associate-*l/ prod-exp cbrt-unprod unswap-sqr
flip3-- flip-- add-log-exp
flip3-+ associate-/r* flip-+
expm1-log1p-u log1p-expm1-u associate-/l*
pow2 pow-plus pow-prod-down pow-sqr *-commutative pow-prod-up associate-/l/
sub-neg frac-2neg fma-neg diff-log prod-diff clear-num
Counts
4 → 293
Calls
4 calls:
11.0ms
(/ (+ x 1.0) (- x 1.0))
31.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
49.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
11.0ms
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

series347.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(/ (+ x 1.0) (- x 1.0))
41.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
56.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
209.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
305 → 305
Iterations

Useful iterations: 1 (26.0ms)

IterNodesCost
011682966
150012739

prune483.0ms

Filtered
305 candidates to 170 candidates (55.7%)
Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.2b

localize14.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))
6.0b
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

rewrite138.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:
20.0ms
(* 3.0 (/ 1 (pow x 3)))
0.0ms
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
6.0ms
(/ (- 1.0) (pow x 2))
76.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

series188.0ms

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

simplify188.0ms

Algorithm
egg-herbie
Counts
573 → 573
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
0131412850
147146734
250016734

prune908.0ms

Filtered
573 candidates to 251 candidates (43.8%)
Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.0b

localize13.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))
6.0b
(- (- (+ (/ 1.0 (pow x 2)) (/ 3.0 x))) (* 3.0 (/ 1 (pow x 3))))

rewrite622.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))
19.0ms
(* 3.0 (/ 1 (pow x 3)))
4.0ms
(/ 1.0 (pow x 2))
583.0ms
(- (- (+ (/ 1.0 (pow x 2)) (/ 3.0 x))) (* 3.0 (/ 1 (pow x 3))))

series133.0ms

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

simplify117.0ms

Algorithm
egg-herbie
Counts
267 → 267
Iterations

Useful iterations: 2 (97.0ms)

IterNodesCost
07951673
141161322
250021298

prune428.0ms

Filtered
267 candidates to 133 candidates (49.8%)
Pruning

5 alts after pruning (2 fresh and 3 done)

Merged error: 0.0b

regimes37.0ms

Accuracy

99.9% (0.0b remaining)

Error of 0.1b against oracle of 0.0b and baseline of 29.3b

bsearch79.0ms

Steps
ItersRangePoint
8
0.8818080259852756
19555.519105776155
10812.5003292367
9
-1052513.600169936
-0.041603525395973645
-11287.389275273414

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04229
14729
24729

end0.0ms

sample547.0ms

Algorithm
intervals
Results
184.0ms1700×body1280valid
120.0ms1238×body640valid
94.0ms4097×body80valid
42.0ms648×body320valid
14.0ms317×body160valid