Details

Time bar (total: 5.2s)

sample111.0ms

Algorithm
intervals
Results
78.0ms201×body1280valid
12.0ms281×body80valid
7.0ms31×body640valid
2.0ms14×body320valid
1.0msbody160valid

simplify220.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.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: 24.7b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (exp x) 2.0)
2.2b
(+ (- (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)))

series68.0ms

Counts
2 → 6
Calls
2 calls:
13.0ms
(- (exp x) 2.0)
56.0ms
(+ (- (exp x) 2.0) (exp (- x)))

simplify96.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0211282
1715269
23477260
35001260

prune87.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt
14×associate-*r*
13×add-exp-log
11×*-un-lft-identity
add-cube-cbrt
unpow-prod-down add-log-exp
add-cbrt-cube
associate-*l* prod-exp unswap-sqr
sqr-pow
pow1 sum-log
pow-to-exp pow-exp *-commutative cbrt-unprod
+-commutative associate-+r+ flip3-+ flip-+ distribute-lft-out
Counts
3 → 64
Calls
3 calls:
11.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))

series141.0ms

Counts
3 → 9
Calls
3 calls:
53.0ms
(+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4))))
52.0ms
(* 1/360 (pow x 6))
36.0ms
(* 1/12 (pow x 4))

simplify47.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0283367
11255340
25001327

prune162.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0b

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt
14×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-log-exp
add-cbrt-cube
associate-*l* prod-exp unswap-sqr
sqr-pow
pow1 sum-log
pow-to-exp pow-exp *-commutative cbrt-unprod
+-commutative associate-+l+ flip3-+ flip-+
Counts
3 → 63
Calls
3 calls:
27.0ms
(+ (+ (pow x 2) (* 1/360 (pow x 6))) (* 1/12 (pow x 4)))
5.0ms
(* 1/360 (pow x 6))
5.0ms
(* 1/12 (pow x 4))

series146.0ms

Counts
3 → 9
Calls
3 calls:
53.0ms
(+ (+ (pow x 2) (* 1/360 (pow x 6))) (* 1/12 (pow x 4)))
53.0ms
(* 1/360 (pow x 6))
40.0ms
(* 1/12 (pow x 4))

simplify43.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0278363
11216338
25001329

prune159.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite53.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
24×*-un-lft-identity
16×add-cube-cbrt unpow-prod-down
15×add-exp-log
14×cbrt-prod associate-*r*
add-cbrt-cube
cube-prod
associate-*l* prod-exp unswap-sqr sqr-pow
pow1
cube-div distribute-lft-out add-log-exp
pow-to-exp pow-unpow pow-exp
cube-mult cbrt-div flip3-+ unpow3 *-commutative cbrt-unprod flip-+
pow-pow pow1/3 rem-cbrt-cube rem-cube-cbrt
Counts
4 → 102
Calls
4 calls:
5.0ms
(* 1/360 (pow x 6))
5.0ms
(* 1/12 (pow x 4))
20.0ms
(pow (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))) 3)
19.0ms
(cbrt (pow (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))) 3))

series224.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(* 1/360 (pow x 6))
37.0ms
(* 1/12 (pow x 4))
76.0ms
(pow (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))) 3)
59.0ms
(cbrt (pow (+ (pow x 2) (+ (* 1/360 (pow x 6)) (* 1/12 (pow x 4)))) 3))

simplify60.0ms

Algorithm
egg-herbie
Counts
114 → 114
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
0418926
11871851
25002838

prune250.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

regimes14.0ms

Accuracy

0% (0.5b remaining)

Error of 0.5b against oracle of 0.0b and baseline of 0.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0177
1177

end0.0ms

sample3.1s

Algorithm
intervals
Results
2.2s5644×body1280valid
334.0ms7939×body80valid
287.0ms1269×body640valid
93.0ms615×body320valid
31.0ms324×body160valid