Details

Time bar (total: 9.2s)

sample110.0ms

Algorithm
intervals
Results
30.0ms69×body1280valid
26.0ms66×body10240exit
22.0ms323×body80valid
9.0ms38×body640valid
4.0ms23×body320valid
1.0msbody160valid

simplify38.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: 31.8b

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (- 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))))
1.2b
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

rewrite65.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:
7.0ms
(* (- 1.0 eps) x)
13.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
17.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
18.0ms
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x)))))

series328.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(* (- 1.0 eps) x)
45.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
52.0ms
(* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))
198.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 (27.0ms)

IterNodesCost
013724120
150013814

prune628.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize9.0ms

Local error

Found 1 expressions with local error:

4.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:
1.0ms
(fma (pow x 3) 0.6666666666666667 (- 2.0 (* 1.0 (pow x 2))))

series37.0ms

Counts
1 → 3
Calls
1 calls:
37.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 (26.0ms)

IterNodesCost
04289
113678
272278
3500275

prune39.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize24.0ms

Local error

Found 4 expressions with local error:

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

rewrite164.0ms

Algorithm
rewrite-expression-head
Rules
792×times-frac
539×add-sqr-sqrt *-un-lft-identity
537×add-cube-cbrt
516×associate--r+
513×prod-diff
258×distribute-rgt-in distribute-lft-in
200×exp-sum
100×distribute-neg-in fma-udef
66×div-inv
36×frac-sub
35×associate-*r/
17×exp-neg
16×frac-times
13×neg-sub0 exp-diff
12×flip3-+ flip-+
10×flip3-- add-cbrt-cube flip--
associate-*l/
pow1 add-exp-log associate-/r* associate-/l*
add-log-exp
expm1-log1p-u pow-flip associate-*l* un-div-inv log1p-expm1-u
sub-neg exp-prod div-exp associate-*r*
cbrt-undiv frac-2neg clear-num associate-/l/
rec-exp fma-neg diff-log 1-exp pow-prod-down prod-exp *-commutative cbrt-unprod distribute-lft-out inv-pow unswap-sqr
Counts
4 → 664
Calls
4 calls:
13.0ms
(/ (exp (- (+ (* x eps) (* 1.0 x)))) eps)
12.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
5.0ms
(/ 1 (exp (fma x eps (* 1.0 x))))
64.0ms
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* 1.0 (- (/ (exp (- (+ (* x eps) (* 1.0 x)))) eps) (/ 1 (exp (fma x eps (* 1.0 x)))))))

series355.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(/ (exp (- (+ (* x eps) (* 1.0 x)))) eps)
49.0ms
(* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x))))
22.0ms
(/ 1 (exp (fma x eps (* 1.0 x))))
256.0ms
(- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* 1.0 (- (/ (exp (- (+ (* x eps) (* 1.0 x)))) eps) (/ 1 (exp (fma x eps (* 1.0 x)))))))

simplify224.0ms

Algorithm
egg-herbie
Counts
676 → 676
Iterations

Useful iterations: 1 (54.0ms)

IterNodesCost
0411721660
1500121604

prune4.0s

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes58.0ms

Accuracy

95.8% (0.7b remaining)

Error of 1.1b against oracle of 0.4b and baseline of 16.9b

bsearch148.0ms

Steps
ItersRangePoint
10
3.9524390088012255e-07
7103758.057079569
130.4040333957902

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05427
16727
26727

end0.0ms

sample2.9s

Algorithm
intervals
Results
778.0ms1902×body10240exit
749.0ms1689×body1280valid
563.0ms10213×body80valid
329.0ms1265×body640valid
112.0ms617×body320valid
37.0ms326×body160valid