Details

Time bar (total: 2.7s)

sample28.0ms

Algorithm
intervals
Results
8.0ms55×body640valid
5.0ms130×body80valid
5.0ms25×body1280valid
4.0ms33×body320valid
1.0ms13×body160valid

simplify15.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0187
1317
2437
3577
4737
5927
61267
71587
82077
92097
102097

prune2.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 9.7b

Counts
2 → 1

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite55.0ms

Algorithm
rewrite-expression-head
Rules
65×*-un-lft-identity
35×times-frac
33×add-sqr-sqrt
14×distribute-lft-out--
13×add-cube-cbrt
10×add-log-exp
distribute-lft-out
difference-of-squares
add-exp-log associate-/r* add-cbrt-cube
pow1 flip3-- frac-add flip-- associate-/l*
sub-neg associate-+l+ diff-log sum-log associate-/r/ frac-sub
cbrt-undiv +-commutative associate-+l- frac-2neg flip3-+ div-exp clear-num flip-+ div-inv
Counts
3 → 81
Calls
3 calls:
5.0ms
(/ 1.0 (- x 1.0))
15.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
32.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series15.0ms

Counts
3 → 9
Calls
3 calls:
2.0ms
(/ 1.0 (- x 1.0))
3.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
10.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify39.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0421692
11417662
25001653

prune136.0ms

Filtered
66 candidates to 90 candidates (-36.4%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New87390
Fresh000
Picked101
Done000
Total88391

Merged error: 0.5b

Counts
91 → 3

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0)) (* (* (+ x 1.0) x) (- x 1.0)))
0.0b
(* (* (+ x 1.0) x) (- x 1.0))
0.2b
(- (* 1.0 x) (* (+ x 1.0) 2.0))
16.3b
(+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
88×associate-*l/
32×frac-add
31×flip3-- flip--
24×frac-times flip3-+ flip-+
18×add-exp-log add-cbrt-cube associate-/l/
12×associate-*r/
pow1 add-sqr-sqrt *-un-lft-identity
associate-/r/ add-log-exp
add-cube-cbrt
prod-exp cbrt-unprod
sub-neg associate-*r*
distribute-rgt-in associate-+l+ distribute-lft-in
cbrt-undiv times-frac div-exp pow-prod-down associate-/l*
+-commutative frac-2neg diff-log associate-*l* clear-num associate-/r* sum-log *-commutative div-inv distribute-lft-out-- difference-of-squares
Counts
4 → 124
Calls
4 calls:
21.0ms
(/ (+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0)) (* (* (+ x 1.0) x) (- x 1.0)))
9.0ms
(* (* (+ x 1.0) x) (- x 1.0))
3.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
12.0ms
(+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0))

series19.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(/ (+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0)) (* (* (+ x 1.0) x) (- x 1.0)))
8.0ms
(* (* (+ x 1.0) x) (- x 1.0))
4.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
1.0ms
(+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0))

simplify49.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
09972264
150012129

prune364.0ms

Filtered
108 candidates to 136 candidates (-25.9%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1342136
Fresh022
Picked101
Done000
Total1354139

Merged error: 0.5b

Counts
139 → 4

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0)) (* (+ x 1.0) (* x (- x 1.0))))
0.0b
(* (+ x 1.0) (* x (- x 1.0)))
0.2b
(- (* 1.0 x) (* (+ x 1.0) 2.0))
16.3b
(+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
76×associate-*l/
32×frac-add
31×flip3-- flip--
24×frac-times flip3-+ associate-*r/ flip-+
18×add-exp-log add-cbrt-cube associate-/l/
10×distribute-rgt-in distribute-lft-in
pow1 *-un-lft-identity
associate-/r/ add-log-exp
add-sqr-sqrt add-cube-cbrt sub-neg
prod-exp cbrt-unprod
associate-+l+ associate-*l*
cbrt-undiv times-frac div-exp pow-prod-down associate-/l*
+-commutative frac-2neg diff-log associate-*r* clear-num associate-/r* sum-log *-commutative div-inv distribute-lft-out
Counts
4 → 127
Calls
4 calls:
21.0ms
(/ (+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0)) (* (+ x 1.0) (* x (- x 1.0))))
9.0ms
(* (+ x 1.0) (* x (- x 1.0)))
3.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
10.0ms
(+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0))

series21.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(/ (+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0)) (* (+ x 1.0) (* x (- x 1.0))))
10.0ms
(* (+ x 1.0) (* x (- x 1.0)))
4.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
1.0ms
(+ (* (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0)) (* (* (+ x 1.0) x) 1.0))

simplify45.0ms

Algorithm
egg-herbie
Counts
139 → 139
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
09902286
150012101

prune342.0ms

Filtered
104 candidates to 139 candidates (-33.7%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1390139
Fresh033
Picked011
Done000
Total1394143

Merged error: 0.5b

Counts
143 → 4

localize12.0ms

Local error

Found 4 expressions with local error:

0.4b
(cbrt (/ 1.0 (- x 1.0)))
0.4b
(cbrt (/ 1.0 (- x 1.0)))
0.4b
(cbrt (/ 1.0 (- x 1.0)))
20.0b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (* (* (cbrt (/ 1.0 (- x 1.0))) (cbrt (/ 1.0 (- x 1.0)))) (cbrt (/ 1.0 (- x 1.0)))))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
63×cbrt-prod
49×add-sqr-sqrt *-un-lft-identity
45×times-frac
39×cbrt-div
31×add-cube-cbrt
21×frac-add
15×frac-times associate-*l/
10×flip3-- flip--
associate-*r/ distribute-lft-out-- add-log-exp difference-of-squares
frac-sub
associate-/r/
pow1 add-exp-log add-cbrt-cube
pow1/3 div-inv
associate-+l+ sum-log
+-commutative associate-+l- sub-neg flip3-+ diff-log flip-+
Counts
4 → 126
Calls
4 calls:
5.0ms
(cbrt (/ 1.0 (- x 1.0)))
5.0ms
(cbrt (/ 1.0 (- x 1.0)))
5.0ms
(cbrt (/ 1.0 (- x 1.0)))
22.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (* (* (cbrt (/ 1.0 (- x 1.0))) (cbrt (/ 1.0 (- x 1.0)))) (cbrt (/ 1.0 (- x 1.0)))))

series45.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(cbrt (/ 1.0 (- x 1.0)))
9.0ms
(cbrt (/ 1.0 (- x 1.0)))
9.0ms
(cbrt (/ 1.0 (- x 1.0)))
18.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (* (* (cbrt (/ 1.0 (- x 1.0))) (cbrt (/ 1.0 (- x 1.0)))) (cbrt (/ 1.0 (- x 1.0)))))

simplify96.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
06512130
119121998
250021878

prune377.0ms

Filtered
106 candidates to 138 candidates (-30.2%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1380138
Fresh022
Picked011
Done011
Total1384142

Merged error: 0.5b

Counts
142 → 4

regimes43.0ms

Accuracy

99.9% (0.0b remaining)

Error of 0.3b against oracle of 0.2b and baseline of 25.2b

bsearch32.0ms

Steps
ItersRangePoint
10
0.0364262917160445
547825979.610153
95.30458877857272
8
-442.47528987694835
-0.030191044061917315
-92.03427948234645

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04325
14325

end0.0ms

sample826.0ms

Algorithm
intervals
Results
285.0ms1864×body640valid
164.0ms4225×body80valid
107.0ms935×body320valid
97.0ms497×body1280valid
38.0ms482×body160valid

Profiling

Loading profile data...