Details

Time bar (total: 14.0s)

sample23.0ms

Algorithm
intervals
Results
6.0ms59×body640valid
4.0ms133×body80valid
3.0ms36×body320valid
2.0ms15×body1280valid
1.0ms13×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

prune1.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 7.2b

localize11.0ms

Local error

Found 3 expressions with local error:

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

rewrite435.0ms

Algorithm
rewrite-expression-head
Rules
707×*-un-lft-identity
691×times-frac
514×add-sqr-sqrt
482×add-cube-cbrt
468×prod-diff
236×associate-+l+
91×distribute-lft-out
64×div-inv
56×associate-/r/
28×flip3-+ flip-+
18×fma-neg
17×distribute-lft-out--
12×difference-of-squares
10×fma-def add-log-exp
add-exp-log associate-/r* add-cbrt-cube
pow1 expm1-log1p-u flip3-- frac-add flip-- log1p-expm1-u associate-/l*
sub-neg diff-log sum-log frac-sub
cbrt-undiv +-commutative associate-+l- frac-2neg div-exp clear-num
Counts
3 → 583
Calls
3 calls:
10.0ms
(/ 1.0 (- x 1.0))
71.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
302.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series264.0ms

Counts
3 → 9
Calls
3 calls:
25.0ms
(/ 1.0 (- x 1.0))
41.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
197.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify153.0ms

Algorithm
egg-herbie
Counts
592 → 592
Iterations

Useful iterations: 2 (75.0ms)

IterNodesCost
0110810776
134078118
250017502

prune1.3s

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.1b

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0)))
0.2b
(* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)))
2.2b
(- (* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x))) (* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0))))
17.0b
(/ (- (* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x))) (* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0)))) (- (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0))))

rewrite1.5s

Algorithm
rewrite-expression-head
Rules
1572×*-un-lft-identity
1497×times-frac
1096×add-sqr-sqrt
985×add-cube-cbrt
937×prod-diff
472×distribute-rgt-in distribute-lft-in associate--l+
172×distribute-lft-out
150×frac-sub
129×div-inv
117×associate-/r/
101×distribute-lft-out--
94×frac-times
64×flip3-- flip--
52×flip3-+ associate-*r/ associate-*l/ flip-+
51×difference-of-squares
47×associate-/l/
41×swap-sqr
31×associate-*r* associate-*l*
20×add-exp-log add-cbrt-cube
18×pow1
11×associate-/r*
add-log-exp
cbrt-undiv sub-neg div-exp prod-exp cbrt-unprod unswap-sqr
expm1-log1p-u log1p-expm1-u associate-/l*
pow2 pow-plus pow-prod-down pow-sqr *-commutative pow-prod-up
frac-2neg fma-neg diff-log div-sub clear-num
Counts
4 → 1298
Calls
4 calls:
52.0ms
(* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0)))
352.0ms
(* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)))
215.0ms
(- (* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x))) (* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0))))
758.0ms
(/ (- (* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x))) (* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0)))) (- (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0))))

series948.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0)))
62.0ms
(* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)))
209.0ms
(- (* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x))) (* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0))))
642.0ms
(/ (- (* (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (- (/ 1.0 (+ x 1.0)) (/ 2.0 x))) (* (/ 1.0 (- x 1.0)) (/ 1.0 (- x 1.0)))) (- (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0))))

simplify352.0ms

Algorithm
egg-herbie
Counts
1310 → 1310
Iterations

Useful iterations: 1 (53.0ms)

IterNodesCost
0299236267
1500133666

prune3.7s

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.1b

localize14.0ms

Local error

Found 3 expressions with local error:

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

rewrite453.0ms

Algorithm
rewrite-expression-head
Rules
707×*-un-lft-identity
691×times-frac
514×add-sqr-sqrt
482×add-cube-cbrt
468×prod-diff
236×associate-+l+
91×distribute-lft-out
64×div-inv
56×associate-/r/
28×flip3-+ flip-+
18×fma-neg
17×distribute-lft-out--
12×difference-of-squares
10×fma-def add-log-exp
add-exp-log associate-/r* add-cbrt-cube
pow1 expm1-log1p-u flip3-- frac-add flip-- log1p-expm1-u associate-/l*
sub-neg diff-log sum-log frac-sub
cbrt-undiv +-commutative associate-+l- frac-2neg div-exp clear-num
Counts
3 → 583
Calls
3 calls:
10.0ms
(/ 1.0 (- x 1.0))
75.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
313.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series272.0ms

Counts
3 → 9
Calls
3 calls:
25.0ms
(/ 1.0 (- x 1.0))
43.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
203.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify155.0ms

Algorithm
egg-herbie
Counts
592 → 592
Iterations

Useful iterations: 2 (76.0ms)

IterNodesCost
0110810776
134078118
250017502

prune1.3s

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.1b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(cbrt (/ 1.0 (- x 1.0)))
0.3b
(cbrt (/ 1.0 (- x 1.0)))
0.3b
(cbrt (/ 1.0 (- x 1.0)))
18.7b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (* (* (cbrt (/ 1.0 (- x 1.0))) (cbrt (/ 1.0 (- x 1.0)))) (cbrt (/ 1.0 (- x 1.0)))))

rewrite348.0ms

Algorithm
rewrite-expression-head
Rules
371×times-frac
369×*-un-lft-identity
292×add-sqr-sqrt
262×add-cube-cbrt
236×associate-+l+
234×prod-diff
63×cbrt-prod
40×distribute-lft-out
39×cbrt-div
34×div-inv
32×associate-/r/
21×frac-add
15×frac-times associate-*l/
14×flip3-+ flip-+
13×difference-of-squares
12×distribute-lft-out--
10×flip3-- fma-def flip--
associate-*r/ add-log-exp
frac-sub
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
pow1/3
sum-log
+-commutative associate-+l- sub-neg diff-log
Counts
4 → 378
Calls
4 calls:
5.0ms
(cbrt (/ 1.0 (- x 1.0)))
5.0ms
(cbrt (/ 1.0 (- x 1.0)))
6.0ms
(cbrt (/ 1.0 (- x 1.0)))
297.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (* (* (cbrt (/ 1.0 (- x 1.0))) (cbrt (/ 1.0 (- x 1.0)))) (cbrt (/ 1.0 (- x 1.0)))))

series613.0ms

Counts
4 → 12
Calls
4 calls:
128.0ms
(cbrt (/ 1.0 (- x 1.0)))
120.0ms
(cbrt (/ 1.0 (- x 1.0)))
122.0ms
(cbrt (/ 1.0 (- x 1.0)))
243.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (* (* (cbrt (/ 1.0 (- x 1.0))) (cbrt (/ 1.0 (- x 1.0)))) (cbrt (/ 1.0 (- x 1.0)))))

simplify117.0ms

Algorithm
egg-herbie
Counts
390 → 390
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
08767948
129894845
250013800

prune1.2s

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.1b

regimes35.0ms

Accuracy

99.9% (0.0b remaining)

Error of 0.3b against oracle of 0.3b and baseline of 25.8b

bsearch96.0ms

Steps
ItersRangePoint
8
3.618674152218468
3974.013529084827
100.99693679484112
9
-28256763.0897718
-0.23317146499959118
-111.60844155440536

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04326
14726
24726

end0.0ms

sample639.0ms

Algorithm
intervals
Results
200.0ms1840×body640valid
119.0ms4166×body80valid
88.0ms600×body1280valid
77.0ms927×body320valid
28.0ms468×body160valid