Details

Time bar (total: 6.5s)

sample340.0ms

Algorithm
intervals
Results
46.0ms196×body10240exit
15.0ms427×body80nan
9.0ms230×body80valid
3.0ms30×body160valid

simplify82.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (10.0ms)

IterNodesCost
0197
1287
2417
3757
41827
55767
626667
750017

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 5.1b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0)))
0.0b
(/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0))
5.6b
(- (exp (* 2.0 x)) 1.0)
5.7b
(- (exp x) 1.0)

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
92×add-sqr-sqrt
89×*-un-lft-identity
51×times-frac
41×add-cube-cbrt
31×sqrt-prod
24×distribute-lft-out-- difference-of-squares
18×prod-diff
add-log-exp
add-exp-log fma-neg add-cbrt-cube
pow1 flip3-- associate-/r* flip-- associate-/l*
expm1-log1p-u associate-/r/ log1p-expm1-u
sub-neg rem-sqrt-square diff-log div-inv associate-/l/
cbrt-undiv frac-2neg sqrt-pow1 pow1/2 sqrt-div div-sub div-exp clear-num
Counts
4 → 155
Calls
4 calls:
14.0ms
(sqrt (/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0)))
16.0ms
(/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0))
5.0ms
(- (exp (* 2.0 x)) 1.0)
7.0ms
(- (exp x) 1.0)

series205.0ms

Counts
4 → 12
Calls
4 calls:
91.0ms
(sqrt (/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0)))
55.0ms
(/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0))
35.0ms
(- (exp (* 2.0 x)) 1.0)
23.0ms
(- (exp x) 1.0)

simplify59.0ms

Algorithm
egg-herbie
Counts
167 → 167
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
04801694
115231484
250011470

prune398.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.0b

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
174×times-frac
171×*-un-lft-identity
127×add-sqr-sqrt
87×add-cube-cbrt
22×associate-/r* distribute-lft-out
20×distribute-lft-out-- difference-of-squares
15×associate-/r/
11×add-exp-log add-cbrt-cube
prod-diff
div-inv associate-/l*
flip3-+ flip-+
add-log-exp
pow1 cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u
fma-neg
flip3-- frac-2neg clear-num flip-- associate-/l/
sub-neg diff-log div-sub fma-udef
Counts
4 → 206
Calls
4 calls:
23.0ms
(/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))
7.0ms
(/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))
0.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))
5.0ms
(- (exp (* 2.0 x)) 1.0)

series248.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))
62.0ms
(/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))
47.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))
25.0ms
(- (exp (* 2.0 x)) 1.0)

simplify110.0ms

Algorithm
egg-herbie
Counts
218 → 218
Iterations

Useful iterations: 2 (81.0ms)

IterNodesCost
08053596
135513384
250033382

prune656.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))
0.1b
(/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))
5.6b
(fma (- 1.0) 1.0 (exp (+ x x)))
5.6b
(- (exp (* 2.0 x)) 1.0)

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
114×times-frac
105×*-un-lft-identity
73×add-sqr-sqrt
71×add-cube-cbrt
22×associate-/r*
17×add-exp-log
16×distribute-lft-out
11×associate-/r/ add-cbrt-cube
prod-diff
div-exp
div-inv associate-/l* add-log-exp
pow1 flip3-+ flip-+
cbrt-undiv expm1-log1p-u log1p-expm1-u
fma-neg
rec-exp frac-2neg 1-exp clear-num
sub-neg flip3-- pow-flip diff-log flip-- fma-udef distribute-lft-out-- inv-pow difference-of-squares
Counts
4 → 171
Calls
4 calls:
11.0ms
(/ 1 (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))
7.0ms
(/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))
0.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))
5.0ms
(- (exp (* 2.0 x)) 1.0)

series201.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(/ 1 (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))
66.0ms
(/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))
41.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))
29.0ms
(- (exp (* 2.0 x)) 1.0)

simplify76.0ms

Algorithm
egg-herbie
Counts
183 → 183
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
05802235
125361984
250011881

prune433.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

localize20.0ms

Local error

Found 4 expressions with local error:

0.1b
(log1p (/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))))
0.1b
(expm1 (log1p (/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))))
5.6b
(fma (- 1.0) 1.0 (exp (+ x x)))
5.6b
(- (exp (* 2.0 x)) 1.0)

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
13×add-sqr-sqrt *-un-lft-identity
11×add-cube-cbrt
prod-diff
add-log-exp
expm1-log1p-u
pow1 add-exp-log add-cbrt-cube log1p-expm1-u
fma-neg
sub-neg log1p-udef expm1-log1p flip3-- diff-log log1p-expm1 flip-- fma-udef distribute-lft-out-- expm1-udef difference-of-squares
Counts
4 → 60
Calls
4 calls:
0.0ms
(log1p (/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))))
0.0ms
(expm1 (log1p (/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))))
0.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))
5.0ms
(- (exp (* 2.0 x)) 1.0)

series560.0ms

Counts
4 → 12
Calls
4 calls:
221.0ms
(log1p (/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0))))
271.0ms
(expm1 (log1p (/ (- (exp (* 2.0 x)) 1.0) (/ (fma (- 1.0) 1.0 (exp (+ x x))) (+ (exp x) 1.0)))))
43.0ms
(fma (- 1.0) 1.0 (exp (+ x x)))
25.0ms
(- (exp (* 2.0 x)) 1.0)

simplify39.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0315802
11051652
25001648

prune245.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

regimes33.0ms

Accuracy

73.5% (0.8b remaining)

Error of 0.9b against oracle of 0.1b and baseline of 3.0b

bsearch31.0ms

Steps
ItersRangePoint
4
-9.18026288086769e-16
-6.177090465987301e-16
-7.158129959812892e-16

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03825
13825

end0.0ms

sample2.6s

Algorithm
intervals
Results
1.5s6622×body10240exit
432.0ms12573×body80nan
277.0ms7347×body80valid
68.0ms760×body160valid