Details

Time bar (total: 5.8s)

sample105.0ms

Algorithm
intervals
Results
68.0ms178×body1280valid
14.0ms239×body80valid
8.0ms33×body640valid
4.0ms26×body320valid
1.0ms11×body160valid

simplify213.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0145
1265
2415
3555
4675
51005
61445
72965
813215
950015

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 31.4b

localize6.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (exp x) 2.0)
5.3b
(+ (- (exp x) 2.0) (exp (- x)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity add-log-exp
add-sqr-sqrt frac-add
flip3-- flip--
pow1 add-exp-log neg-sub0 exp-neg add-cube-cbrt sub-neg associate-+l+ exp-diff diff-log sum-log add-cbrt-cube distribute-lft-out distribute-lft-out--
+-commutative associate-+l- flip3-+ flip-+ difference-of-squares
Counts
2 → 35
Calls
2 calls:
4.0ms
(- (exp x) 2.0)
25.0ms
(+ (- (exp x) 2.0) (exp (- x)))

series65.0ms

Counts
2 → 6
Calls
2 calls:
12.0ms
(- (exp x) 2.0)
53.0ms
(+ (- (exp x) 2.0) (exp (- x)))

simplify93.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 2 (19.0ms)

IterNodesCost
0211282
1715269
23477260
35001260

prune85.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.0b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))
0.0b
(+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))))
0.1b
(* 1/360 (pow x 6))
0.1b
(* 1/12 (pow x 4))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
14×add-exp-log associate-*r*
12×*-un-lft-identity
11×add-log-exp
10×add-cube-cbrt
unpow-prod-down add-cbrt-cube
associate-*l* prod-exp unswap-sqr
pow1 sum-log sqr-pow
+-commutative pow-to-exp flip3-+ pow-exp *-commutative cbrt-unprod flip-+
associate-+r+ distribute-lft-out
Counts
4 → 75
Calls
4 calls:
3.0ms
(+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))
12.0ms
(+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))))
8.0ms
(* 1/360 (pow x 6))
6.0ms
(* 1/12 (pow x 4))

series256.0ms

Counts
4 → 12
Calls
4 calls:
122.0ms
(+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))
52.0ms
(+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))))
47.0ms
(* 1/360 (pow x 6))
35.0ms
(* 1/12 (pow x 4))

simplify48.0ms

Algorithm
egg-herbie
Counts
87 → 87
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0327476
11399444
25001426

prune184.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (* (exp x) (exp x)) (* 2.0 2.0))
0.0b
(/ (- (* (exp x) (exp x)) (* 2.0 2.0)) (+ (exp x) 2.0))
0.0b
(* (exp x) (exp x))
5.6b
(+ (/ (- (* (exp x) (exp x)) (* 2.0 2.0)) (+ (exp x) 2.0)) (exp (- x)))

rewrite114.0ms

Algorithm
rewrite-expression-head
Rules
36×*-un-lft-identity
26×add-sqr-sqrt
24×add-cube-cbrt
18×exp-prod
16×times-frac
11×pow1
add-cbrt-cube add-log-exp
add-exp-log distribute-lft-out difference-of-squares
pow-prod-down associate-/r* pow-sqr pow-prod-up associate-/l*
swap-sqr associate-*r* associate-*l*
flip3-- flip3-+ div-sub frac-add associate-/r/ flip-- flip-+ associate-/l/
cbrt-undiv +-commutative pow2 neg-sub0 exp-neg associate-+l- sub-neg frac-2neg pow-plus exp-diff diff-log div-exp prod-exp clear-num sum-log *-commutative cbrt-unprod div-inv unswap-sqr
Counts
4 → 103
Calls
4 calls:
7.0ms
(- (* (exp x) (exp x)) (* 2.0 2.0))
26.0ms
(/ (- (* (exp x) (exp x)) (* 2.0 2.0)) (+ (exp x) 2.0))
8.0ms
(* (exp x) (exp x))
71.0ms
(+ (/ (- (* (exp x) (exp x)) (* 2.0 2.0)) (+ (exp x) 2.0)) (exp (- x)))

series206.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(- (* (exp x) (exp x)) (* 2.0 2.0))
42.0ms
(/ (- (* (exp x) (exp x)) (* 2.0 2.0)) (+ (exp x) 2.0))
15.0ms
(* (exp x) (exp x))
126.0ms
(+ (/ (- (* (exp x) (exp x)) (* 2.0 2.0)) (+ (exp x) 2.0)) (exp (- x)))

simplify71.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
04741032
12302948
25002943

prune230.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 1/12 (pow x 4))
0.1b
(* 1/12 (pow x 4))
0.1b
(* 1/12 (pow x 4))
44.2b
(/ (+ (pow x 4) (- (* (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))) (- (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

rewrite62.0ms

Algorithm
rewrite-expression-head
Rules
72×add-sqr-sqrt
55×*-un-lft-identity
32×times-frac
27×add-cube-cbrt
21×add-exp-log associate-*r*
20×difference-of-squares
17×unpow-prod-down
12×add-cbrt-cube
11×sqr-pow
associate-*l* prod-exp distribute-lft-out unswap-sqr
associate-/r*
distribute-lft-out-- unpow2
pow1 associate-/l* add-log-exp
pow-to-exp div-sub pow-exp *-commutative cbrt-unprod
associate-/r/ associate-/l/
cbrt-undiv neg-sub0 associate-+r- flip3-- frac-2neg flip3-+ div-exp unsub-neg clear-num flip-- flip-+ div-inv
Counts
4 → 138
Calls
4 calls:
5.0ms
(* 1/12 (pow x 4))
5.0ms
(* 1/12 (pow x 4))
5.0ms
(* 1/12 (pow x 4))
41.0ms
(/ (+ (pow x 4) (- (* (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))) (- (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

series247.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(* 1/12 (pow x 4))
36.0ms
(* 1/12 (pow x 4))
34.0ms
(* 1/12 (pow x 4))
143.0ms
(/ (+ (pow x 4) (- (* (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))) (- (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))))

simplify68.0ms

Algorithm
egg-herbie
Counts
150 → 150
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
03592510
116382337
250032205

prune324.0ms

Pruning

3 alts after pruning (0 fresh and 3 done)

Merged error: 0b

regimes20.0ms

Accuracy

44.5% (0.4b remaining)

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

bsearch35.0ms

Steps
ItersRangePoint
8
0.00035723662727133143
3.9715340067303715
0.027742406259524545

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03218
13218

end0.0ms

sample3.3s

Algorithm
intervals
Results
2.2s5660×body1280valid
441.0ms7756×body80valid
295.0ms1244×body640valid
99.0ms621×body320valid
35.0ms307×body160valid