Details

Time bar (total: 7.1s)

sample22.0ms

Algorithm
intervals
Results
6.0ms54×body640valid
4.0ms131×body80valid
3.0ms21×body1280valid
2.0ms31×body320valid
1.0ms19×body160valid

simplify18.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0187
1317
2437
3577
4737
5927
61267
71587
82077
92097
102097

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 9.2b

localize8.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1.0 (- x 1.0))
0.0b
(/ 1.0 (+ x 1.0))
0.0b
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
2.4b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

rewrite368.0ms

Algorithm
rewrite-expression-head
Rules
725×*-un-lft-identity
703×times-frac
524×add-sqr-sqrt
492×add-cube-cbrt
468×prod-diff
236×associate-+l+
95×distribute-lft-out
65×div-inv
58×associate-/r/
29×flip3-+ flip-+
18×fma-neg
17×distribute-lft-out--
12×difference-of-squares
11×add-log-exp
10×fma-def
associate-/r*
add-exp-log add-cbrt-cube
associate-/l*
pow1 expm1-log1p-u log1p-expm1-u
flip3-- frac-add flip--
cbrt-undiv sub-neg frac-2neg diff-log div-exp clear-num sum-log frac-sub
+-commutative associate-+l-
Counts
4 → 618
Calls
4 calls:
5.0ms
(/ 1.0 (- x 1.0))
5.0ms
(/ 1.0 (+ x 1.0))
54.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
246.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series307.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(/ 1.0 (- x 1.0))
24.0ms
(/ 1.0 (+ x 1.0))
40.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
213.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify156.0ms

Algorithm
egg-herbie
Counts
630 → 630
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
0115610955
136078288
250017670

prune1.3s

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(expm1 (/ 1.0 (- x 1.0)))
0.0b
(log1p (expm1 (/ 1.0 (- x 1.0))))
0.0b
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
2.4b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (log1p (expm1 (/ 1.0 (- x 1.0)))))

rewrite336.0ms

Algorithm
rewrite-expression-head
Rules
664×times-frac
662×*-un-lft-identity
497×add-sqr-sqrt
473×add-cube-cbrt
468×prod-diff
236×associate-+l+
85×distribute-lft-out
63×div-inv
54×associate-/r/
28×flip3-+ flip-+
18×fma-neg
14×add-log-exp
10×fma-def
difference-of-squares
distribute-lft-out--
log1p-expm1-u
pow1 add-exp-log expm1-log1p-u sum-log add-cbrt-cube
log1p-udef diff-log
sub-neg
+-commutative associate-+l- expm1-log1p flip3-- log1p-expm1 frac-sub flip-- expm1-udef
Counts
4 → 561
Calls
4 calls:
0.0ms
(expm1 (/ 1.0 (- x 1.0)))
0.0ms
(log1p (expm1 (/ 1.0 (- x 1.0))))
54.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
232.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (log1p (expm1 (/ 1.0 (- x 1.0)))))

series829.0ms

Counts
4 → 12
Calls
4 calls:
72.0ms
(expm1 (/ 1.0 (- x 1.0)))
165.0ms
(log1p (expm1 (/ 1.0 (- x 1.0))))
47.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
544.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (log1p (expm1 (/ 1.0 (- x 1.0)))))

simplify152.0ms

Algorithm
egg-herbie
Counts
573 → 573
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
0107510673
131057997
250017376

prune1.4s

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.5b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma 2.0 (/ 1 (pow x 5)) (/ 2.0 (pow x 3)))
0.2b
(/ 1 (pow x 7))
0.3b
(/ 1 (pow x 5))
0.5b
(/ 2.0 (pow x 3))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
78×times-frac
61×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
36×unpow-prod-down
27×add-exp-log
26×associate-/r*
15×div-exp
12×cube-prod sqr-pow
10×add-cbrt-cube
associate-/l*
pow-to-exp pow-exp
rec-exp 1-exp
pow1 expm1-log1p-u cube-mult unpow3 log1p-expm1-u add-log-exp
cbrt-undiv frac-2neg clear-num div-inv
pow-flip inv-pow
fma-udef
Counts
4 → 187
Calls
4 calls:
0.0ms
(fma 2.0 (/ 1 (pow x 5)) (/ 2.0 (pow x 3)))
4.0ms
(/ 1 (pow x 7))
4.0ms
(/ 1 (pow x 5))
5.0ms
(/ 2.0 (pow x 3))

series265.0ms

Counts
4 → 12
Calls
4 calls:
124.0ms
(fma 2.0 (/ 1 (pow x 5)) (/ 2.0 (pow x 3)))
58.0ms
(/ 1 (pow x 7))
42.0ms
(/ 1 (pow x 5))
40.0ms
(/ 2.0 (pow x 3))

simplify53.0ms

Algorithm
egg-herbie
Counts
199 → 199
Iterations

Useful iterations: 1 (13.0ms)

IterNodesCost
0450904
12278777
25001777

prune398.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0b

localize19.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (/ 1 (* x x)) (/ 2.0 x))
0.2b
(/ 1 (pow x 7))
0.3b
(/ 1 (pow x 5))
0.6b
(/ 1 (* x x))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
78×add-exp-log
64×times-frac
60×add-sqr-sqrt
49×*-un-lft-identity
47×add-cube-cbrt
34×add-cbrt-cube
31×div-exp
24×unpow-prod-down
23×prod-exp
15×associate-/r*
14×pow1
13×associate-*r*
12×rec-exp 1-exp
11×cbrt-undiv
cbrt-unprod associate-/l*
pow-flip sqr-pow
associate-*l*
pow-to-exp pow-exp unswap-sqr
div-inv
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg clear-num inv-pow
pow-prod-down
pow2 frac-times pow-plus associate-*r/ associate-*l/ pow-sqr *-commutative pow-prod-up
Counts
4 → 204
Calls
4 calls:
22.0ms
(* (/ 1 (* x x)) (/ 2.0 x))
4.0ms
(/ 1 (pow x 7))
4.0ms
(/ 1 (pow x 5))
5.0ms
(/ 1 (* x x))

series161.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* (/ 1 (* x x)) (/ 2.0 x))
59.0ms
(/ 1 (pow x 7))
48.0ms
(/ 1 (pow x 5))
18.0ms
(/ 1 (* x x))

simplify78.0ms

Algorithm
egg-herbie
Counts
216 → 216
Iterations

Useful iterations: 2 (65.0ms)

IterNodesCost
0649986
13582855
25001762

prune398.0ms

Pruning

6 alts after pruning (3 fresh and 3 done)

Merged error: 0b

regimes43.0ms

Accuracy

99.4% (0.1b remaining)

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

bsearch98.0ms

Steps
ItersRangePoint
9
0.006665254470786589
7065.8830381017015
115.29908004264922
9
-14674.600957416102
-0.00012459925560949148
-109.21801109479635

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03819
13819

end0.0ms

sample596.0ms

Algorithm
intervals
Results
197.0ms1898×body640valid
113.0ms4039×body80valid
85.0ms975×body320valid
81.0ms589×body1280valid
26.0ms500×body160valid