Details

Time bar (total: 4.9s)

sample20.0ms

Algorithm
intervals
Results
5.0ms56×body1280valid
3.0ms44×body640valid
3.0ms125×body80valid
1.0ms20×body320valid
0.0ms11×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: 30.6b

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)))

rewrite124.0ms

Algorithm
rewrite-expression-head
Rules
99×*-un-lft-identity
52×times-frac
45×add-sqr-sqrt
23×add-cube-cbrt
18×distribute-lft-out distribute-lft-out--
associate-/r* difference-of-squares
add-exp-log add-cbrt-cube associate-/l*
add-log-exp
associate-/r/
pow1
cbrt-undiv flip3-- frac-2neg flip3-+ div-exp clear-num flip-- flip-+ div-inv associate-/l/
sub-neg diff-log frac-sub
Counts
3 → 104
Calls
3 calls:
10.0ms
(/ x (+ x 1.0))
24.0ms
(/ (+ x 1.0) (- x 1.0))
86.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series187.0ms

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

simplify46.0ms

Algorithm
egg-herbie
Counts
113 → 113
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0392760
11379726
25001716

prune197.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (/ (- 1.0) (pow x 2)) (/ 3.0 x))
0.1b
(/ 3.0 (pow x 3))
0.4b
(/ (- 1.0) (pow x 2))
6.4b
(- (- (/ (- 1.0) (pow x 2)) (/ 3.0 x)) (/ 3.0 (pow x 3)))

rewrite799.0ms

Algorithm
rewrite-expression-head
Rules
143×times-frac
120×add-sqr-sqrt
105×*-un-lft-identity
78×add-cube-cbrt
48×unpow-prod-down
29×distribute-rgt-neg-in
27×distribute-lft-neg-in
20×associate-/r*
18×sqr-pow
15×difference-of-squares
14×add-exp-log
13×cube-prod associate-/l* unpow2
11×add-log-exp
10×distribute-lft-out--
neg-mul-1
add-cbrt-cube
div-exp
frac-sub
pow1 cube-mult diff-log unpow3
sub-neg flip3-- flip--
cbrt-undiv associate--l- neg-sub0 pow-to-exp frac-2neg div-sub pow-exp associate--l+ clear-num div-inv
distribute-frac-neg
Counts
4 → 234
Calls
4 calls:
94.0ms
(- (/ (- 1.0) (pow x 2)) (/ 3.0 x))
8.0ms
(/ 3.0 (pow x 3))
10.0ms
(/ (- 1.0) (pow x 2))
677.0ms
(- (- (/ (- 1.0) (pow x 2)) (/ 3.0 x)) (/ 3.0 (pow x 3)))

series155.0ms

Counts
4 → 12
Calls
4 calls:
64.0ms
(- (/ (- 1.0) (pow x 2)) (/ 3.0 x))
32.0ms
(/ 3.0 (pow x 3))
29.0ms
(/ (- 1.0) (pow x 2))
29.0ms
(- (- (/ (- 1.0) (pow x 2)) (/ 3.0 x)) (/ 3.0 (pow x 3)))

simplify92.0ms

Algorithm
egg-herbie
Counts
246 → 246
Iterations

Useful iterations: 2 (73.0ms)

IterNodesCost
07381754
134481596
250011578

prune409.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite351.0ms

Algorithm
rewrite-expression-head
Rules
544×*-un-lft-identity
320×times-frac
170×add-sqr-sqrt
141×distribute-lft-out
106×add-cube-cbrt
72×swap-sqr
52×distribute-lft-out--
44×associate-*r* associate-*l*
34×difference-of-squares
30×add-exp-log add-cbrt-cube
19×associate-/r/
18×pow1 frac-sub
14×frac-times associate-*r/ associate-*l/
12×associate-/r*
11×associate-/l/
cbrt-undiv div-exp div-inv
prod-exp cbrt-unprod unswap-sqr
flip3-- flip-- add-log-exp
flip3-+ flip-+
associate-/l*
pow2 pow-plus pow-prod-down pow-sqr *-commutative pow-prod-up
sub-neg frac-2neg diff-log div-sub frac-add clear-num
Counts
4 → 329
Calls
4 calls:
50.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
80.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
171.0ms
(/ (- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
24.0ms
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

series601.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
47.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
323.0ms
(/ (- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
188.0ms
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

simplify75.0ms

Algorithm
egg-herbie
Counts
341 → 341
Iterations

Useful iterations: 1 (29.0ms)

IterNodesCost
012944957
150014719

prune481.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.0b

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 3.0 (/ 1 (pow x 3)))
0.2b
(* 3.0 (/ 1 x))
0.4b
(/ 1 (pow x 2))
8.0b
(+ (* 1.0 (/ 1 (pow x 2))) (+ (* 3.0 (/ 1 x)) (* 3.0 (/ 1 (pow x 3)))))

rewrite94.0ms

Algorithm
rewrite-expression-head
Rules
79×add-sqr-sqrt times-frac
57×*-un-lft-identity
53×associate-*r*
52×add-cube-cbrt
42×add-exp-log
23×unpow-prod-down
20×frac-add
16×associate-*r/ un-div-inv add-cbrt-cube
14×div-exp prod-exp
12×unswap-sqr
11×cube-prod
add-log-exp sqr-pow
pow1 associate-/r*
rec-exp 1-exp
pow-to-exp associate-*l* pow-exp
cbrt-unprod unpow2
cbrt-undiv cube-mult flip3-+ unpow3 sum-log flip-+ div-inv associate-/l*
pow-prod-down *-commutative
+-commutative associate-+r+ pow-flip frac-2neg clear-num inv-pow
Counts
4 → 193
Calls
4 calls:
27.0ms
(* 3.0 (/ 1 (pow x 3)))
14.0ms
(* 3.0 (/ 1 x))
8.0ms
(/ 1 (pow x 2))
37.0ms
(+ (* 1.0 (/ 1 (pow x 2))) (+ (* 3.0 (/ 1 x)) (* 3.0 (/ 1 (pow x 3)))))

series95.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* 3.0 (/ 1 (pow x 3)))
15.0ms
(* 3.0 (/ 1 x))
15.0ms
(/ 1 (pow x 2))
25.0ms
(+ (* 1.0 (/ 1 (pow x 2))) (+ (* 3.0 (/ 1 x)) (* 3.0 (/ 1 (pow x 3)))))

simplify108.0ms

Algorithm
egg-herbie
Counts
205 → 205
Iterations

Useful iterations: 2 (94.0ms)

IterNodesCost
08411247
14404956
25001924

prune341.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0b

regimes30.0ms

Accuracy

99.7% (0.1b remaining)

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

bsearch64.0ms

Steps
ItersRangePoint
8
9.114942375872904
154062.39550417996
10731.604757326571
9
-15077057.36594219
-0.2945747773639613
-1.0046554685366835

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03719
13719

end0.0ms

sample532.0ms

Algorithm
intervals
Results
183.0ms1793×body1280valid
96.0ms1270×body640valid
92.0ms4016×body80valid
34.0ms593×body320valid
13.0ms328×body160valid