Details

Time bar (total: 4.2s)

sample48.0ms

Algorithm
intervals
Results
17.0ms66×body1280valid
12.0ms53×body640valid
6.0ms181×body80valid
5.0ms39×body320valid
1.0ms11×body160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0103
1133
2153
3153

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.8b

localize4.0ms

Local error

Found 2 expressions with local error:

0.0b
(/ (- (exp x) 1.0) x)
4.0b
(- (exp x) 1.0)

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt *-un-lft-identity
15×times-frac
12×add-cube-cbrt
associate-/l* distribute-lft-out-- difference-of-squares
add-exp-log add-cbrt-cube add-log-exp
associate-/r*
pow1 flip3-- flip-- associate-/l/
cbrt-undiv sub-neg frac-2neg diff-log div-sub div-exp clear-num div-inv
Counts
2 → 52
Calls
2 calls:
11.0ms
(/ (- (exp x) 1.0) x)
5.0ms
(- (exp x) 1.0)

series59.0ms

Counts
2 → 6
Calls
2 calls:
44.0ms
(/ (- (exp x) 1.0) x)
15.0ms
(- (exp x) 1.0)

simplify75.0ms

Algorithm
egg-herbie
Counts
58 → 58
Iterations

Useful iterations: 2 (18.0ms)

IterNodesCost
0222329
1625311
22739309
35001309

prune113.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.0b

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ (* 1/6 (pow x 2)) (+ (* 1/2 x) 1))
0.2b
(* 1/6 (pow x 2))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
associate-*r*
add-exp-log add-log-exp
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-cbrt-cube unswap-sqr
associate-*l* prod-exp sum-log
pow1 unpow2 sqr-pow
+-commutative pow-to-exp associate-+r+ flip3-+ pow-exp *-commutative cbrt-unprod flip-+
Counts
2 → 40
Calls
2 calls:
8.0ms
(+ (* 1/6 (pow x 2)) (+ (* 1/2 x) 1))
6.0ms
(* 1/6 (pow x 2))

series49.0ms

Counts
2 → 6
Calls
2 calls:
21.0ms
(+ (* 1/6 (pow x 2)) (+ (* 1/2 x) 1))
29.0ms
(* 1/6 (pow x 2))

simplify35.0ms

Algorithm
egg-herbie
Counts
46 → 46
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0201222
1825201
25001198

prune82.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize19.0ms

Local error

Found 4 expressions with local error:

0.2b
(* 1/6 (pow x 2))
0.2b
(* 1/6 (pow x 2))
9.8b
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
13.6b
(/ (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3)) (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2)))))

rewrite124.0ms

Algorithm
rewrite-expression-head
Rules
32×add-sqr-sqrt
30×*-un-lft-identity
20×add-cube-cbrt
16×add-exp-log associate-*r*
15×times-frac
10×add-cbrt-cube
unpow-prod-down unswap-sqr
associate-*l* prod-exp add-log-exp
sum-cubes distribute-lft-out associate-/l*
pow1 unpow2 sqr-pow
flip3-+ associate-/r* flip-+
pow-to-exp pow-exp associate-/r/ *-commutative cbrt-unprod associate-/l/
cbrt-undiv +-commutative frac-2neg div-exp clear-num sum-log div-inv
Counts
4 → 106
Calls
4 calls:
6.0ms
(* 1/6 (pow x 2))
6.0ms
(* 1/6 (pow x 2))
20.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
89.0ms
(/ (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3)) (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2)))))

series187.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(* 1/6 (pow x 2))
26.0ms
(* 1/6 (pow x 2))
52.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
81.0ms
(/ (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3)) (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2)))))

simplify87.0ms

Algorithm
egg-herbie
Counts
118 → 118
Iterations

Useful iterations: 2 (70.0ms)

IterNodesCost
04061692
121391561
250021555

prune349.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize31.0ms

Local error

Found 4 expressions with local error:

9.0b
(/ (sqrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2))))))
9.8b
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
9.8b
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
11.9b
(/ (sqrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (* (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2))))) (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2)))))))

rewrite258.0ms

Algorithm
rewrite-expression-head
Rules
62×*-un-lft-identity
56×times-frac
45×sqrt-prod
40×add-sqr-sqrt add-cube-cbrt
27×cbrt-prod
16×associate-/l*
14×cbrt-div
11×add-exp-log flip3-+ sum-cubes flip-+ distribute-lft-out
10×associate-/r/
add-cbrt-cube add-log-exp
associate-/r*
pow1 frac-times sqrt-div associate-/l/
cbrt-undiv div-exp
+-commutative frac-2neg associate-*r/ associate-*l/ clear-num sum-log div-inv
prod-exp cbrt-unprod
Counts
4 → 145
Calls
4 calls:
89.0ms
(/ (sqrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2))))))
19.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
20.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
123.0ms
(/ (sqrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (* (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2))))) (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2)))))))

series383.0ms

Counts
4 → 12
Calls
4 calls:
134.0ms
(/ (sqrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2))))))
53.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
52.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
143.0ms
(/ (sqrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (* (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2))))) (cbrt (+ (* (+ (* 1/2 x) 1) (- (+ (* 1/2 x) 1) (* 1/6 (pow x 2)))) (* 1/36 (* (pow x 2) (pow x 2)))))))

simplify124.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (73.0ms)

IterNodesCost
06805550
125655235
250025204

prune692.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

regimes28.0ms

Accuracy

98.8% (0.3b remaining)

Error of 0.3b against oracle of 0.0b and baseline of 21.0b

bsearch47.0ms

Steps
ItersRangePoint
8
-1.3862719480695398
-4.2961337728369966e-05
-0.0004040655084722963

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05133
15133

end0.0ms

sample1.4s

Algorithm
intervals
Results
605.0ms2380×body1280valid
287.0ms1623×body640valid
185.0ms5461×body80valid
100.0ms848×body320valid
32.0ms404×body160valid