Details

Time bar (total: 2.9s)

sample29.0ms

Algorithm
intervals
Results
10.0ms68×body640valid
5.0ms129×body80valid
3.0ms16×body1280valid
3.0ms26×body320valid
1.0ms17×body160valid

simplify4.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (3.0ms)

IterNodesCost
08115
18115

prune4.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 8.9b

Counts
2 → 1

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite59.0ms

Algorithm
rewrite-expression-head
Rules
83×*-un-lft-identity
47×times-frac
43×add-sqr-sqrt
23×add-cube-cbrt
14×distribute-lft-out--
13×distribute-lft-out
11×add-log-exp
associate-/r*
add-exp-log add-cbrt-cube difference-of-squares
associate-/l*
pow1 associate-/r/
flip3-- frac-add flip--
cbrt-undiv sub-neg associate-+l+ frac-2neg flip3-+ diff-log div-exp clear-num sum-log frac-sub flip-+ div-inv
+-commutative associate-+l-
Counts
4 → 114
Calls
4 calls:
5.0ms
(/ 1.0 (+ x 1.0))
5.0ms
(/ 1.0 (- x 1.0))
16.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
29.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series20.0ms

Counts
4 → 12
Calls
4 calls:
2.0ms
(/ 1.0 (+ x 1.0))
2.0ms
(/ 1.0 (- x 1.0))
3.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
12.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify67.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 0 (56.0ms)

IterNodesCost
049341608
149341608

prune188.0ms

Filtered
95 candidates to 126 candidates (-32.6%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New1233126
Fresh000
Picked101
Done000
Total1243127

Merged error: 0.1b

Counts
127 → 3

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x))
0.2b
(* (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x)) (+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0))
5.7b
(+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0)
12.2b
(/ (* (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x)) (+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0)) (* (- x 1.0) (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x))))

rewrite156.0ms

Algorithm
rewrite-expression-head
Rules
28×*-un-lft-identity
19×flip3-+ flip-+
18×add-exp-log frac-times add-cbrt-cube
11×associate-/r/ associate-/l/
10×frac-add
times-frac
add-sqr-sqrt associate-*l/ distribute-lft-out add-log-exp
associate-*r/
pow1 add-cube-cbrt associate-*l*
prod-exp cbrt-unprod
cbrt-undiv associate-+l+ flip3-- div-exp flip--
distribute-rgt-in distribute-lft-in associate-*r*
+-commutative sub-neg sum-log
frac-2neg pow-prod-down clear-num associate-/r* *-commutative div-inv associate-/l* unswap-sqr
Counts
4 → 107
Calls
4 calls:
16.0ms
(+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x))
45.0ms
(* (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x)) (+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0))
23.0ms
(+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0)
68.0ms
(/ (* (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x)) (+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0)) (* (- x 1.0) (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x))))

series40.0ms

Counts
4 → 12
Calls
4 calls:
3.0ms
(+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x))
14.0ms
(* (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x)) (+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0))
8.0ms
(+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0)
15.0ms
(/ (* (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x)) (+ (* (- x 1.0) (- (/ 1.0 (+ 1.0 x)) (/ 2.0 x))) 1.0)) (* (- x 1.0) (+ (/ 1.0 (+ 1.0 x)) (/ 2.0 x))))

simplify52.0ms

Algorithm
egg-herbie
Counts
119 → 119
Iterations

Useful iterations: 0 (32.0ms)

IterNodesCost
051033275

prune295.0ms

Filtered
94 candidates to 119 candidates (-26.6%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1181119
Fresh022
Picked011
Done000
Total1184122

Merged error: 0.0b

Counts
122 → 4

localize19.0ms

Local error

Found 4 expressions with local error:

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

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
76×associate-*r/
32×frac-add
27×flip3-- flip--
18×flip3-+ flip-+ associate-/l/
16×frac-times
11×add-exp-log add-cbrt-cube
10×add-sqr-sqrt
distribute-rgt-in add-cube-cbrt *-un-lft-identity distribute-lft-in associate-*l/ add-log-exp
pow1
sub-neg
associate-+l+ associate-+r+ associate-*r*
times-frac associate-*l* associate-/l*
cbrt-undiv div-exp prod-exp associate-/r/ cbrt-unprod
+-commutative frac-2neg diff-log pow-prod-down clear-num associate-/r* sum-log *-commutative div-inv difference-of-squares unswap-sqr
Counts
4 → 113
Calls
4 calls:
18.0ms
(/ (+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x)))) (* x (- (* x x) (* 1.0 1.0))))
6.0ms
(* x (- (* x x) (* 1.0 1.0)))
3.0ms
(- (* 1.0 x) (* (+ 1.0 x) 2.0))
11.0ms
(+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x))))

series17.0ms

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

simplify50.0ms

Algorithm
egg-herbie
Counts
125 → 125
Iterations

Useful iterations: 0 (29.0ms)

IterNodesCost
053323761

prune315.0ms

Filtered
97 candidates to 125 candidates (-28.9%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1241125
Fresh022
Picked101
Done011
Total1254129

Merged error: 0.0b

Counts
129 → 4

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(* x (+ 1.0 x))
0.0b
(/ (+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x)))) (- (pow x 3) (* x 1.0)))
0.2b
(- (* 1.0 x) (* (+ 1.0 x) 2.0))
19.5b
(+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x))))

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
74×associate-*r/
32×frac-add
26×flip3-- flip--
19×flip3-+ flip-+
18×associate-/l/
17×add-sqr-sqrt *-un-lft-identity
16×frac-times
15×add-cube-cbrt
12×times-frac
add-exp-log associate-*l/ add-cbrt-cube add-log-exp
distribute-rgt-in distribute-lft-in
pow1
cube-mult associate-+l+ associate-+r+ associate-*r* associate-/r* distribute-lft-out--
sub-neg associate-*l* associate-/l*
associate-/r/
cbrt-undiv +-commutative frac-2neg diff-log div-exp pow-prod-down prod-exp clear-num sum-log *-commutative cbrt-unprod div-inv distribute-lft-out unswap-sqr
Counts
4 → 121
Calls
4 calls:
8.0ms
(* x (+ 1.0 x))
17.0ms
(/ (+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x)))) (- (pow x 3) (* x 1.0)))
3.0ms
(- (* 1.0 x) (* (+ 1.0 x) 2.0))
11.0ms
(+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x))))

series15.0ms

Counts
4 → 12
Calls
4 calls:
4.0ms
(* x (+ 1.0 x))
5.0ms
(/ (+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x)))) (- (pow x 3) (* x 1.0)))
3.0ms
(- (* 1.0 x) (* (+ 1.0 x) 2.0))
1.0ms
(+ (* (- x 1.0) (- (* 1.0 x) (* (+ 1.0 x) 2.0))) (* 1.0 (* x (+ 1.0 x))))

simplify63.0ms

Algorithm
egg-herbie
Counts
133 → 133
Iterations

Useful iterations: 0 (45.0ms)

IterNodesCost
050074164

prune383.0ms

Filtered
110 candidates to 133 candidates (-20.9%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1330133
Fresh022
Picked011
Done011
Total1334137

Merged error: 0.0b

Counts
137 → 4

regimes60.0ms

Accuracy

99.4% (0.2b remaining)

Error of 0.2b against oracle of 0.0b and baseline of 28.7b

bsearch34.0ms

Steps
ItersRangePoint
10
0.009091900342010817
66730311810763.45
169090.9027696541
7
-5486.906575454437
-60.40944958396893
-4144.93602321544

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05795
15795

end0.0ms

sample847.0ms

Algorithm
intervals
Results
284.0ms1846×body640valid
168.0ms4172×body80valid
114.0ms571×body1280valid
106.0ms907×body320valid
39.0ms507×body160valid

Profiling

Loading profile data...