Details

Time bar (total: 3.0s)

sample37.0ms

Algorithm
intervals
Results
11.0ms63×body1280valid
9.0ms65×body10240exit
5.0ms46×body640valid
2.0ms109×body80valid
2.0ms24×body320valid
1.0ms14×body160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
074
184
284

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.3b

localize4.0ms

Local error

Found 2 expressions with local error:

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

rewrite16.0ms

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

series40.0ms

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

simplify185.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 3 (179.0ms)

IterNodesCost
0237520
1786429
24651416
35001404

prune143.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.0b

localize6.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ (fma 1/12 x (/ 1 x)) 1/2)
0.1b
(fma 1/12 x (/ 1 x))

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def
pow1 add-exp-log expm1-log1p-u add-cbrt-cube fma-udef log1p-expm1-u
+-commutative associate-+l+ flip3-+ sum-log flip-+ distribute-lft-out
Counts
2 → 28
Calls
2 calls:
3.0ms
(+ (fma 1/12 x (/ 1 x)) 1/2)
0.0ms
(fma 1/12 x (/ 1 x))

series62.0ms

Counts
2 → 6
Calls
2 calls:
15.0ms
(+ (fma 1/12 x (/ 1 x)) 1/2)
47.0ms
(fma 1/12 x (/ 1 x))

simplify37.0ms

Algorithm
egg-herbie
Counts
34 → 34
Iterations

Useful iterations: 3 (33.0ms)

IterNodesCost
090126
1306119
21283117
35001116

prune65.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
0.5b
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
0.5b
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
0.5b
(* (cbrt (+ (fma 1/12 x (/ 1 x)) 1/2)) (cbrt (+ (fma 1/12 x (/ 1 x)) 1/2)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
36×cbrt-prod
35×*-un-lft-identity
23×add-sqr-sqrt
18×cbrt-div
15×add-cube-cbrt
11×pow1
flip3-+ pow1/3 swap-sqr flip-+ distribute-lft-out
associate-*r* associate-*l*
add-exp-log
expm1-log1p-u frac-times add-cbrt-cube log1p-expm1-u add-log-exp unswap-sqr
associate-*r/ pow-prod-down associate-*l/ pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod
Counts
4 → 103
Calls
4 calls:
2.0ms
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
2.0ms
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
2.0ms
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
21.0ms
(* (cbrt (+ (fma 1/12 x (/ 1 x)) 1/2)) (cbrt (+ (fma 1/12 x (/ 1 x)) 1/2)))

series282.0ms

Counts
4 → 12
Calls
4 calls:
80.0ms
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
75.0ms
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
68.0ms
(cbrt (+ (fma 1/12 x (/ 1 x)) 1/2))
58.0ms
(* (cbrt (+ (fma 1/12 x (/ 1 x)) 1/2)) (cbrt (+ (fma 1/12 x (/ 1 x)) 1/2)))

simplify48.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
03301259
111151189
250011083

prune279.0ms

Pruning

5 alts after pruning (2 fresh and 3 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (/ (exp x) (fma (- 1.0) 1.0 (exp (+ x x)))) (+ (exp x) 1.0))
0.0b
(+ (exp x) 1.0)
0.3b
(/ (exp x) (fma (- 1.0) 1.0 (exp (+ x x))))
3.8b
(fma (- 1.0) 1.0 (exp (+ x x)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
25×*-un-lft-identity
21×add-cube-cbrt
19×times-frac
13×associate-*l*
11×add-cbrt-cube
add-exp-log
pow1 add-log-exp
expm1-log1p-u associate-*r* log1p-expm1-u
fma-def flip3-+ associate-/r* flip-+ associate-/l*
cbrt-undiv frac-times associate-*r/ div-exp prod-exp cbrt-unprod div-inv distribute-lft-out unswap-sqr
+-commutative distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down associate-*l/ clear-num sum-log *-commutative fma-udef
Counts
4 → 97
Calls
4 calls:
21.0ms
(* (/ (exp x) (fma (- 1.0) 1.0 (exp (+ x x)))) (+ (exp x) 1.0))
4.0ms
(+ (exp x) 1.0)
3.0ms
(/ (exp x) (fma (- 1.0) 1.0 (exp (+ x x))))
0.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))

series219.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(* (/ (exp x) (fma (- 1.0) 1.0 (exp (+ x x)))) (+ (exp x) 1.0))
8.0ms
(+ (exp x) 1.0)
78.0ms
(/ (exp x) (fma (- 1.0) 1.0 (exp (+ x x))))
47.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))

simplify50.0ms

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0436984
11853887
25002871

prune273.0ms

Pruning

5 alts after pruning (2 fresh and 3 done)

Merged error: 0.0b

regimes66.0ms

Accuracy

98.2% (0.4b remaining)

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

bsearch1.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02113
12113

end0.0ms

sample1.1s

Algorithm
intervals
Results
378.0ms2189×body1280valid
280.0ms2544×body10240exit
173.0ms1600×body640valid
62.0ms843×body320valid
62.0ms2949×body80valid
19.0ms421×body160valid