Details

Time bar (total: 4.5s)

sample82.0ms

Algorithm
intervals
Results
24.0ms56×body1280valid
16.0ms293×body80valid
16.0ms50×body640valid
5.0ms29×body320valid
3.0ms56×body80overflowed
1.0ms10×body160valid

simplify39.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 4 (37.0ms)

IterNodesCost
04716
112416
236516
3137616
4500115

prune9.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 33.6b

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (- (* (+ 1.0 eps) x)))
0.0b
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
0.0b
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
2.7b
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

rewrite109.0ms

Algorithm
rewrite-expression-head
Rules
81×exp-neg frac-sub
80×frac-times
61×neg-sub0 exp-diff
40×associate-*r/ associate-*l/
31×flip3-- flip--
30×flip3-+ flip-+
20×un-div-inv
18×add-sqr-sqrt
13×*-un-lft-identity
10×associate-*l*
add-cube-cbrt
pow1 add-cbrt-cube add-log-exp
add-exp-log exp-prod associate-*r*
expm1-log1p-u log1p-expm1-u
pow-prod-down prod-exp *-commutative cbrt-unprod rem-exp-log difference-of-squares unswap-sqr
distribute-lft-neg-in neg-mul-1 sub-neg distribute-rgt-neg-in times-frac fma-neg diff-log prod-diff neg-log distribute-lft-out distribute-lft-out--
Counts
4 → 178
Calls
4 calls:
3.0ms
(exp (- (* (+ 1.0 eps) x)))
30.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
37.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
29.0ms
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

series456.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(exp (- (* (+ 1.0 eps) x)))
46.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
52.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
328.0ms
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

simplify146.0ms

Algorithm
egg-herbie
Counts
190 → 190
Iterations

Useful iterations: 2 (112.0ms)

IterNodesCost
013214118
147943811
250013793

prune486.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.3b

localize9.0ms

Local error

Found 1 expressions with local error:

5.6b
(fma (pow x 3) 0.6666666666666667 (- 2.0 (* 1.0 (pow x 2))))

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube fma-udef log1p-expm1-u add-log-exp
Counts
1 → 10
Calls
1 calls:
0.0ms
(fma (pow x 3) 0.6666666666666667 (- 2.0 (* 1.0 (pow x 2))))

series41.0ms

Counts
1 → 3
Calls
1 calls:
41.0ms
(fma (pow x 3) 0.6666666666666667 (- 2.0 (* 1.0 (pow x 2))))

simplify29.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (27.0ms)

IterNodesCost
04289
113678
272278
3500275

prune45.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.3b

localize8.0ms

Local error

Found 1 expressions with local error:

0.0b
(fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube fma-udef log1p-expm1-u add-log-exp
Counts
1 → 10
Calls
1 calls:
0.0ms
(fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)

series40.0ms

Counts
1 → 3
Calls
1 calls:
39.0ms
(fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)

simplify106.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
04982
113267
253467
3307667
4500167

prune38.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.3b

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)
0.4b
(expm1 (log1p (fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)))
9.1b
(log1p (fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0))

rewrite2.0ms

Algorithm
rewrite-expression-head
Rules
expm1-log1p-u
pow1 add-exp-log add-sqr-sqrt add-cube-cbrt *-un-lft-identity add-cbrt-cube log1p-expm1-u add-log-exp
log1p-udef expm1-log1p log1p-expm1 fma-udef expm1-udef
Counts
3 → 32
Calls
3 calls:
0.0ms
(fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)
0.0ms
(expm1 (log1p (fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)))
0.0ms
(log1p (fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0))

series279.0ms

Counts
3 → 9
Calls
3 calls:
42.0ms
(fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)
145.0ms
(expm1 (log1p (fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0)))
92.0ms
(log1p (fma (pow x 2) (- (* 0.6666666666666667 x) 1.0) 2.0))

simplify86.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 3 (81.0ms)

IterNodesCost
0256339
1839298
23626272
35002268

prune107.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.3b

regimes50.0ms

Accuracy

96.2% (0.6b remaining)

Error of 1.1b against oracle of 0.5b and baseline of 17.0b

bsearch124.0ms

Steps
ItersRangePoint
9
0.7889543571722019
588165898.4936482
439.217255613825

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04623
15423
25423

end0.0ms

sample2.2s

Algorithm
intervals
Results
734.0ms1672×body1280valid
576.0ms10038×body80valid
322.0ms1253×body640valid
120.0ms1972×body80overflowed
115.0ms660×body320valid
35.0ms317×body160valid