Details

Time bar (total: 4.2s)

sample88.0ms

Algorithm
intervals
Results
55.0ms173×body1280valid
7.0ms244×body80valid
7.0ms39×body640valid
6.0ms24×body320valid
1.0ms14×body160valid

simplify135.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0145
1265
2415
3555
4655
5965
61405
72855
816425
950015

prune2.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 28.1b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (exp x) 2.0)
4.9b
(+ (- (exp x) 2.0) (exp (neg x)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity add-log-exp
add-sqr-sqrt frac-add
flip3-- flip--
pow1 add-exp-log neg-sub0 exp-neg add-cube-cbrt sub-neg associate-+l+ exp-diff diff-log sum-log add-cbrt-cube distribute-lft-out distribute-lft-out--
+-commutative associate-+l- flip3-+ flip-+ difference-of-squares
Counts
2 → 35
Calls
2 calls:
4.0ms
(- (exp x) 2.0)
8.0ms
(+ (- (exp x) 2.0) (exp (neg x)))

series9.0ms

Counts
2 → 6
Calls
2 calls:
2.0ms
(- (exp x) 2.0)
7.0ms
(+ (- (exp x) 2.0) (exp (neg x)))

simplify86.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 2 (18.0ms)

IterNodesCost
0209282
1694269
23196260
35001260

prune66.0ms

Filtered
29 candidates to 41 candidates (-41.4%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New37441
Fresh000
Picked101
Done000
Total38442

Merged error: 0.1b

Counts
42 → 4

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))))
0.1b
(* 1/360 (pow x 6))
0.1b
(* 1/12 (pow x 4))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt
14×associate-*r*
13×add-exp-log
11×*-un-lft-identity
add-cube-cbrt
unpow-prod-down add-log-exp
add-cbrt-cube
associate-*l* prod-exp unswap-sqr
sqr-pow
pow1 sum-log
pow-to-exp pow-exp *-commutative cbrt-unprod
+-commutative associate-+r+ flip3-+ flip-+ distribute-lft-out
Counts
3 → 64
Calls
3 calls:
7.0ms
(+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))))
5.0ms
(* 1/360 (pow x 6))
5.0ms
(* 1/12 (pow x 4))

series14.0ms

Counts
3 → 9
Calls
3 calls:
6.0ms
(+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))))
4.0ms
(* 1/360 (pow x 6))
4.0ms
(* 1/12 (pow x 4))

simplify41.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0283367
11255340
25001327

prune119.0ms

Filtered
45 candidates to 73 candidates (-62.2%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New72173
Fresh033
Picked011
Done000
Total72577

Merged error: 0.1b

Counts
77 → 5

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 1/12 (pow x 4))
0.1b
(* 1/12 (pow x 4))
29.7b
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
29.7b
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
16×*-un-lft-identity
14×add-exp-log associate-*r*
12×add-cube-cbrt
unpow-prod-down sqrt-prod add-cbrt-cube
pow1 associate-*l* prod-exp unswap-sqr
sqrt-div add-log-exp sqr-pow
pow-to-exp rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 pow-exp *-commutative cbrt-unprod flip-+ distribute-lft-out
Counts
4 → 82
Calls
4 calls:
7.0ms
(* 1/12 (pow x 4))
5.0ms
(* 1/12 (pow x 4))
6.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
7.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

series22.0ms

Counts
4 → 12
Calls
4 calls:
4.0ms
(* 1/12 (pow x 4))
4.0ms
(* 1/12 (pow x 4))
8.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
7.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

simplify200.0ms

Algorithm
egg-herbie
Counts
94 → 94
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0259662
11019626
24841616
35001616

prune270.0ms

Filtered
64 candidates to 94 candidates (-46.9%)
Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New94094
Fresh033
Picked011
Done011
Total94599

Merged error: 0.1b

Counts
99 → 5

localize19.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3))))
0.0b
(/ (+ (* 2.0 2.0) (+ (exp (+ x x)) (* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3)))))) (* (exp x) (+ (* 2.0 (+ 2.0 (exp x))) (exp (+ x x)))))
0.1b
(pow (exp x) 3)
6.0b
(+ (* 2.0 2.0) (+ (exp (+ x x)) (* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3))))))

rewrite55.0ms

Algorithm
rewrite-expression-head
Rules
17×*-un-lft-identity
14×add-sqr-sqrt
12×add-cube-cbrt add-cbrt-cube
add-exp-log add-log-exp
pow1
associate-*r*
pow-pow flip3-+ associate-*r/ flip-+
unpow-prod-down pow-unpow exp-prod times-frac cube-prod associate-*l* sum-log associate-/l*
cbrt-undiv div-exp prod-exp associate-/r/ cbrt-unprod associate-/l/ distribute-lft-out
+-commutative distribute-rgt-in cube-mult pow-to-exp associate-+r+ frac-2neg distribute-lft-in unpow3 pow-prod-down pow-exp clear-num associate-/r* *-commutative div-inv distribute-lft-out-- rem-cube-cbrt unswap-sqr sqr-pow
Counts
4 → 88
Calls
4 calls:
19.0ms
(* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3))))
21.0ms
(/ (+ (* 2.0 2.0) (+ (exp (+ x x)) (* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3)))))) (* (exp x) (+ (* 2.0 (+ 2.0 (exp x))) (exp (+ x x)))))
3.0ms
(pow (exp x) 3)
9.0ms
(+ (* 2.0 2.0) (+ (exp (+ x x)) (* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3))))))

series64.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3))))
38.0ms
(/ (+ (* 2.0 2.0) (+ (exp (+ x x)) (* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3)))))) (* (exp x) (+ (* 2.0 (+ 2.0 (exp x))) (exp (+ x x)))))
4.0ms
(pow (exp x) 3)
14.0ms
(+ (* 2.0 2.0) (+ (exp (+ x x)) (* (exp x) (+ 2.0 (- (pow (exp x) 3) (pow 2.0 3))))))

simplify121.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (108.0ms)

IterNodesCost
05781345
136041165
250011162

prune181.0ms

Filtered
70 candidates to 100 candidates (-42.9%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New982100
Fresh022
Picked101
Done022
Total996105

Merged error: 0.1b

Counts
105 → 6

regimes45.0ms

Accuracy

0% (0.6b remaining)

Error of 0.6b against oracle of 0.0b and baseline of 0.6b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0177
1177

end0.0ms

sample2.6s

Algorithm
intervals
Results
1.8s5706×body1280valid
214.0ms7807×body80valid
213.0ms1225×body640valid
66.0ms605×body320valid
21.0ms302×body160valid

Profiling

Loading profile data...