Details

Time bar (total: 5.3s)

sample104.0ms

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

simplify225.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0145
1265
2415
3555
4675
51045
61615
73445
814545
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)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
25×*-un-lft-identity
20×add-sqr-sqrt
18×prod-diff
16×add-cube-cbrt
11×associate-+l+
add-log-exp
fma-def
frac-add
flip3-- fma-neg flip-- distribute-lft-out--
pow1 add-exp-log neg-sub0 exp-neg expm1-log1p-u sub-neg exp-diff diff-log sum-log add-cbrt-cube log1p-expm1-u distribute-lft-out difference-of-squares
+-commutative associate-+l- flip3-+ flip-+
Counts
2 → 65
Calls
2 calls:
5.0ms
(- (exp x) 2.0)
29.0ms
(+ (- (exp x) 2.0) (exp (- x)))

series75.0ms

Counts
2 → 6
Calls
2 calls:
18.0ms
(- (exp x) 2.0)
57.0ms
(+ (- (exp x) 2.0) (exp (- x)))

simplify34.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0282506
11008381
25001367

prune171.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
add-exp-log
associate-*r*
add-cube-cbrt *-un-lft-identity
add-cbrt-cube
unpow-prod-down
pow1 expm1-log1p-u associate-*l* prod-exp log1p-expm1-u add-log-exp unswap-sqr
fma-udef sqr-pow
pow-to-exp pow-exp *-commutative cbrt-unprod
Counts
3 → 47
Calls
3 calls:
0.0ms
(fma 1/360 (pow x 6) (* 1/12 (pow x 4)))
0.0ms
(fma x x (fma 1/360 (pow x 6) (* 1/12 (pow x 4))))
6.0ms
(* 1/12 (pow x 4))

series230.0ms

Counts
3 → 9
Calls
3 calls:
132.0ms
(fma 1/360 (pow x 6) (* 1/12 (pow x 4)))
60.0ms
(fma x x (fma 1/360 (pow x 6) (* 1/12 (pow x 4))))
37.0ms
(* 1/12 (pow x 4))

simplify97.0ms

Algorithm
egg-herbie
Counts
56 → 56
Iterations

Useful iterations: 2 (18.0ms)

IterNodesCost
0143265
1544240
22626237
35001237

prune146.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma (- 2.0) 2.0 (exp (+ x x)))
0.0b
(* (+ (exp x) 2.0) (exp x))
0.3b
(/ (fma (exp x) (fma (- 2.0) 2.0 (exp (+ x x))) (+ (exp x) 2.0)) (* (+ (exp x) 2.0) (exp x)))
4.4b
(fma (exp x) (fma (- 2.0) 2.0 (exp (+ x x))) (+ (exp x) 2.0))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
11×add-cbrt-cube
10×add-sqr-sqrt *-un-lft-identity
add-exp-log
add-cube-cbrt
pow1
expm1-log1p-u associate-*l* associate-*l/ log1p-expm1-u add-log-exp
times-frac associate-*r* associate-/l*
cbrt-undiv flip3-+ div-exp prod-exp associate-/r/ cbrt-unprod flip-+ fma-udef
frac-2neg pow-prod-down clear-num associate-/r* *-commutative div-inv distribute-lft-out unswap-sqr
Counts
4 → 68
Calls
4 calls:
0.0ms
(fma (- 2.0) 2.0 (exp (+ x x)))
16.0ms
(* (+ (exp x) 2.0) (exp x))
7.0ms
(/ (fma (exp x) (fma (- 2.0) 2.0 (exp (+ x x))) (+ (exp x) 2.0)) (* (+ (exp x) 2.0) (exp x)))
0.0ms
(fma (exp x) (fma (- 2.0) 2.0 (exp (+ x x))) (+ (exp x) 2.0))

series566.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(fma (- 2.0) 2.0 (exp (+ x x)))
23.0ms
(* (+ (exp x) 2.0) (exp x))
406.0ms
(/ (fma (exp x) (fma (- 2.0) 2.0 (exp (+ x x))) (+ (exp x) 2.0)) (* (+ (exp x) 2.0) (exp x)))
96.0ms
(fma (exp x) (fma (- 2.0) 2.0 (exp (+ x x))) (+ (exp x) 2.0))

simplify40.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0309842
11272718
25002714

prune230.0ms

Pruning

3 alts after pruning (0 fresh and 3 done)

Merged error: 0b

regimes39.0ms

Accuracy

87.2% (0.1b remaining)

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

bsearch1.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02115
12115

end0.0ms

sample3.3s

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