Details

Time bar (total: 6.3s)

sample123.0ms

Algorithm
intervals
Results
35.0ms302×body80valid
34.0ms50×body1280valid
17.0ms37×body640valid
9.0ms51×body80overflowed
9.0ms27×body320valid
3.0ms12×body160valid

simplify37.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 4 (36.0ms)

IterNodesCost
04716
112416
236516
3137616
4500115

prune9.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 29.2b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite119.0ms

Algorithm
rewrite-expression-head
Rules
81×frac-sub
80×exp-neg frac-times
60×neg-sub0 exp-diff
42×associate-*l/
40×associate-*r/
32×flip3-- flip--
30×flip3-+ flip-+
23×add-sqr-sqrt
20×un-div-inv
16×*-un-lft-identity
15×associate-*l*
10×pow1 add-cube-cbrt add-cbrt-cube
associate-*r*
add-exp-log
add-log-exp
expm1-log1p-u log1p-expm1-u
pow-prod-down prod-exp *-commutative cbrt-unprod difference-of-squares unswap-sqr
distribute-lft-out--
sub-neg times-frac fma-neg diff-log prod-diff distribute-lft-out
Counts
4 → 183
Calls
4 calls:
30.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
39.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
10.0ms
(* (- 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:
49.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
49.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
32.0ms
(* (- 1.0 eps) x)
326.0ms
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

simplify62.0ms

Algorithm
egg-herbie
Counts
195 → 195
Iterations

Useful iterations: 1 (28.0ms)

IterNodesCost
013724120
150013814

prune501.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.5b

localize10.0ms

Local error

Found 1 expressions with local error:

6.4b
(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))))

series39.0ms

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

simplify30.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (27.0ms)

IterNodesCost
04289
113678
272278
3500275

prune40.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0.5b

localize19.0ms

Local error

Found 4 expressions with local error:

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

rewrite71.0ms

Algorithm
rewrite-expression-head
Rules
30×add-sqr-sqrt
25×*-un-lft-identity
21×add-cube-cbrt
19×times-frac
12×exp-sum
10×associate-*l* add-cbrt-cube
pow1 add-exp-log
prod-diff
associate-*r* associate-/l* add-log-exp
sub-neg
exp-neg expm1-log1p-u frac-times flip3-- exp-diff associate-*l/ flip-- log1p-expm1-u
neg-sub0 fma-neg associate-/r*
associate-*r/ pow-prod-down prod-exp *-commutative cbrt-unprod difference-of-squares unswap-sqr
cbrt-undiv frac-2neg flip3-+ diff-log div-exp associate--l+ clear-num un-div-inv flip-+ fma-udef div-inv associate-/l/ distribute-lft-out distribute-lft-out--
Counts
4 → 118
Calls
4 calls:
12.0ms
(/ (exp (- (* x eps) (* 1.0 x))) eps)
39.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
12.0ms
(* (+ 1.0 eps) x)
5.0ms
(- (fma 1.0 (/ (exp (- (* x eps) (* 1.0 x))) eps) (* 1.0 (exp (- (* x eps) (* 1.0 x))))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

series293.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(/ (exp (- (* x eps) (* 1.0 x))) eps)
50.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
31.0ms
(* (+ 1.0 eps) x)
177.0ms
(- (fma 1.0 (/ (exp (- (* x eps) (* 1.0 x))) eps) (* 1.0 (exp (- (* x eps) (* 1.0 x))))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

simplify64.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
05351424
120491302
250011270

prune436.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0.5b

regimes44.0ms

Accuracy

96.7% (0.5b remaining)

Error of 0.9b against oracle of 0.4b and baseline of 16.7b

bsearch195.0ms

Steps
ItersRangePoint
10
6.5383237107547055e-09
649.3281407255394
347.89305073499355

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04326
14926
24926

end0.0ms

sample3.8s

Algorithm
intervals
Results
1.2s1706×body1280valid
1.2s9989×body80valid
580.0ms1231×body640valid
222.0ms1928×body80overflowed
210.0ms641×body320valid
67.0ms305×body160valid