Details

Time bar (total: 3.7s)

sample46.0ms

Algorithm
intervals
Results
15.0ms65×body1280valid
10.0ms62×body640valid
7.0ms178×body80valid
5.0ms20×body320valid
1.0ms13×body160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0103
1133
2153
3153

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 39.0b

localize4.0ms

Local error

Found 2 expressions with local error:

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

rewrite18.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)

series58.0ms

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

simplify75.0ms

Algorithm
egg-herbie
Counts
58 → 58
Iterations

Useful iterations: 2 (17.0ms)

IterNodesCost
0222329
1625311
22739309
35001309

prune122.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.1b

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))

rewrite16.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:
9.0ms
(+ (* 1/6 (pow x 2)) (+ (* 1/2 x) 1))
6.0ms
(* 1/6 (pow x 2))

series48.0ms

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

simplify35.0ms

Algorithm
egg-herbie
Counts
46 → 46
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0201222
1825201
25001198

prune93.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.1b

localize18.0ms

Local error

Found 4 expressions with local error:

0.2b
(* 1/6 (pow x 2))
0.2b
(* 1/6 (pow x 2))
11.2b
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
15.8b
(/ (+ (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)))))

rewrite131.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))
95.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)))))

series185.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(* 1/6 (pow x 2))
25.0ms
(* 1/6 (pow x 2))
53.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
77.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)))))

simplify85.0ms

Algorithm
egg-herbie
Counts
118 → 118
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
04061692
121391561
250021555

prune365.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.1b

localize33.0ms

Local error

Found 4 expressions with local error:

11.2b
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
11.2b
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
11.2b
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
13.7b
(/ (* (cbrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (cbrt (+ (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)))))))

rewrite184.0ms

Algorithm
rewrite-expression-head
Rules
24×cbrt-div
16×add-exp-log
15×flip3-+ flip-+
10×*-un-lft-identity add-log-exp
frac-times associate-/r/ add-cbrt-cube associate-/l/
pow1 cbrt-undiv add-sqr-sqrt add-cube-cbrt associate-*r/ div-exp associate-*l/ prod-exp cbrt-unprod
+-commutative sum-log sum-cubes distribute-lft-out
frac-2neg times-frac clear-num associate-/r* div-inv associate-/l*
Counts
4 → 76
Calls
4 calls:
23.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
21.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
21.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
117.0ms
(/ (* (cbrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (cbrt (+ (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)))))))

series284.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
50.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
54.0ms
(+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))
126.0ms
(/ (* (cbrt (+ (pow (* 1/6 (pow x 2)) 3) (pow (+ (* 1/2 x) 1) 3))) (cbrt (+ (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)))))))

simplify80.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
05072673
120532286
250032270

prune459.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 0.1b

regimes49.0ms

Accuracy

98.3% (0.4b remaining)

Error of 0.4b against oracle of 0.0b and baseline of 21.6b

bsearch39.0ms

Steps
ItersRangePoint
8
-0.0019174381104543623
-3.774608270569166e-06
-0.00015819896650017998

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03826
13826

end0.0ms

sample1.3s

Algorithm
intervals
Results
518.0ms2216×body1280valid
273.0ms1661×body640valid
221.0ms5446×body80valid
95.0ms828×body320valid
38.0ms447×body160valid