Details

Time bar (total: 6.6s)

sample24.0ms

Algorithm
intervals
Results
7.0ms66×body640valid
4.0ms130×body80valid
3.0ms32×body320valid
2.0ms16×body1280valid
1.0ms12×body160valid

simplify19.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.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: 11.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)) (/ 2.0 x))
0.0b
(/ 1.0 (- x 1.0))
1.5b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

rewrite471.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:
12.0ms
(/ 1.0 (+ x 1.0))
76.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
11.0ms
(/ 1.0 (- x 1.0))
324.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series280.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(/ 1.0 (+ x 1.0))
38.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
24.0ms
(/ 1.0 (- x 1.0))
195.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 (75.0ms)

IterNodesCost
0115610955
136078288
250017670

prune1.3s

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.6b

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))
1.5b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (log1p (expm1 (/ 1.0 (- x 1.0)))))

rewrite346.0ms

Algorithm
rewrite-expression-head
Rules
347×*-un-lft-identity
341×times-frac
265×add-sqr-sqrt
245×add-cube-cbrt
236×associate-+l+
234×prod-diff
42×distribute-lft-out
32×div-inv
28×associate-/r/
14×flip3-+ flip-+
12×add-log-exp
10×fma-def
distribute-lft-out-- difference-of-squares
add-exp-log add-cbrt-cube
associate-/r* log1p-expm1-u
pow1 expm1-log1p-u sum-log
log1p-udef associate-/l*
diff-log
cbrt-undiv +-commutative associate-+l- sub-neg expm1-log1p flip3-- frac-2neg log1p-expm1 div-exp clear-num flip-- expm1-udef
Counts
4 → 326
Calls
4 calls:
0.0ms
(expm1 (/ 1.0 (- x 1.0)))
0.0ms
(log1p (expm1 (/ 1.0 (- x 1.0))))
11.0ms
(/ 1.0 (- x 1.0))
309.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (log1p (expm1 (/ 1.0 (- x 1.0)))))

series745.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(expm1 (/ 1.0 (- x 1.0)))
149.0ms
(log1p (expm1 (/ 1.0 (- x 1.0))))
46.0ms
(/ 1.0 (- x 1.0))
486.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (log1p (expm1 (/ 1.0 (- x 1.0)))))

simplify87.0ms

Algorithm
egg-herbie
Counts
338 → 338
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
05934402
120513413
250032518

prune967.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.6b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma 2.0 (/ 1 (pow x 7)) (fma 2.0 (/ 1 (pow x 5)) (/ 2.0 (pow x 3))))
0.0b
(/ 1 (pow x 7))
0.0b
(/ 1 (pow x 5))
0.6b
(/ 2.0 (pow x 3))

rewrite33.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 7)) (fma 2.0 (/ 1 (pow x 5)) (/ 2.0 (pow x 3))))
8.0ms
(/ 1 (pow x 7))
8.0ms
(/ 1 (pow x 5))
11.0ms
(/ 2.0 (pow x 3))

series191.0ms

Counts
4 → 12
Calls
4 calls:
57.0ms
(fma 2.0 (/ 1 (pow x 7)) (fma 2.0 (/ 1 (pow x 5)) (/ 2.0 (pow x 3))))
55.0ms
(/ 1 (pow x 7))
45.0ms
(/ 1 (pow x 5))
33.0ms
(/ 2.0 (pow x 3))

simplify53.0ms

Algorithm
egg-herbie
Counts
199 → 199
Iterations

Useful iterations: 1 (13.0ms)

IterNodesCost
0460949
12326816
25001816

prune395.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 0b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (pow x 7))
0.0b
(/ 1 (pow x 5))
0.1b
(* (/ 1 (* x x)) (/ 2.0 x))
0.4b
(/ 1 (* x x))

rewrite78.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:
8.0ms
(/ 1 (pow x 7))
8.0ms
(/ 1 (pow x 5))
43.0ms
(* (/ 1 (* x x)) (/ 2.0 x))
11.0ms
(/ 1 (* x x))

series144.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(/ 1 (pow x 7))
44.0ms
(/ 1 (pow x 5))
32.0ms
(* (/ 1 (* x x)) (/ 2.0 x))
18.0ms
(/ 1 (* x x))

simplify79.0ms

Algorithm
egg-herbie
Counts
216 → 216
Iterations

Useful iterations: 2 (66.0ms)

IterNodesCost
0649986
13593855
25001762

prune383.0ms

Pruning

8 alts after pruning (5 fresh and 3 done)

Merged error: 0b

regimes47.0ms

Accuracy

99.4% (0.1b remaining)

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

bsearch103.0ms

Steps
ItersRangePoint
10
8.950540206577903e-05
66689094922.78456
107.91934125672991
10
-1500.694570789724
-6.177030851099824e-09
-112.31575512255452

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03919
13919

end0.0ms

sample630.0ms

Algorithm
intervals
Results
209.0ms1914×body640valid
123.0ms4184×body80valid
80.0ms949×body320valid
72.0ms529×body1280valid
23.0ms428×body160valid