Details

Time bar (total: 4.5s)

sample85.0ms

Algorithm
intervals
Results
58.0ms187×body1280valid
6.0ms248×body80valid
6.0ms35×body640valid
2.0ms19×body320valid
1.0ms11×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

prune3.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 28.6b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (exp x) 2.0)
3.7b
(+ (- (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

prune58.0ms

Filtered
41 candidates to 29 candidates (29.3%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New39241
Fresh000
Picked101
Done000
Total40242

Merged error: 0.0b

Counts
42 → 2

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite24.0ms

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

series26.0ms

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

simplify50.0ms

Algorithm
egg-herbie
Counts
87 → 87
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0329464
11456438
25001422

prune141.0ms

Filtered
87 candidates to 55 candidates (36.8%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New86187
Fresh011
Picked011
Done000
Total86389

Merged error: 0.0b

Counts
89 → 3

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.9b
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
29.9b
(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:
5.0ms
(* 1/12 (pow x 4))
5.0ms
(* 1/12 (pow x 4))
7.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)))))

series26.0ms

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

simplify201.0ms

Algorithm
egg-herbie
Counts
94 → 94
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0259662
11019626
24841616
35001616

prune275.0ms

Filtered
94 candidates to 64 candidates (31.9%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New93194
Fresh011
Picked101
Done011
Total94397

Merged error: 0b

Counts
97 → 3

localize18.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))) (sqrt (sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))))
29.9b
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
29.9b
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
29.9b
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
94×sqrt-prod
52×add-sqr-sqrt
39×*-un-lft-identity
35×sqrt-pow1
30×pow1 sqrt-div
19×add-cube-cbrt pow1/2
18×swap-sqr
10×associate-*r* associate-*l*
flip3-+ pow-prod-up flip-+ distribute-lft-out unswap-sqr
add-exp-log add-cbrt-cube
pow-prod-down pow-sqr
frac-times add-log-exp
rem-sqrt-square
associate-*r/ associate-*l/
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 136
Calls
4 calls:
23.0ms
(* (sqrt (sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))) (sqrt (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)))))
8.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
8.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

series34.0ms

Counts
4 → 12
Calls
4 calls:
11.0ms
(* (sqrt (sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))) (sqrt (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)))))
8.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))
8.0ms
(sqrt (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

simplify65.0ms

Algorithm
egg-herbie
Counts
148 → 148
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
02952012
113231868
250011827

prune518.0ms

Filtered
148 candidates to 79 candidates (46.6%)
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1480148
Fresh011
Picked011
Done011
Total1483151

Merged error: 0b

Counts
151 → 3

regimes64.0ms

Accuracy

0% (0.7b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0177
1177

end0.0ms

sample2.6s

Algorithm
intervals
Results
1.8s5675×body1280valid
210.0ms1221×body640valid
208.0ms8043×body80valid
66.0ms629×body320valid
21.0ms307×body160valid

Profiling

Loading profile data...