Details

Time bar (total: 6.8s)

sample24.0ms

Algorithm
intervals
Results
6.0ms53×body640valid
4.0ms130×body80valid
3.0ms40×body320valid
2.0ms19×body1280valid
1.0ms14×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: 11.0b

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite684.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:
78.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
11.0ms
(/ 1.0 (- x 1.0))
336.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series307.0ms

Counts
3 → 9
Calls
3 calls:
47.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
28.0ms
(/ 1.0 (- x 1.0))
232.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify152.0ms

Algorithm
egg-herbie
Counts
592 → 592
Iterations

Useful iterations: 2 (79.0ms)

IterNodesCost
0110810776
134078118
250017502

prune1.3s

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize23.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* x x) (- (* 1.0 1.0) (* x 1.0)))
0.1b
(/ 1.0 (+ (pow x 3) (pow 1.0 3)))
10.7b
(+ (fma (/ 1.0 (+ (pow x 3) (pow 1.0 3))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))
18.8b
(fma (/ 1.0 (+ (pow x 3) (pow 1.0 3))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1)))

rewrite67.0ms

Algorithm
rewrite-expression-head
Rules
61×*-un-lft-identity
27×times-frac
21×distribute-lft-out
19×add-sqr-sqrt add-cube-cbrt
16×unpow-prod-down cube-prod
11×add-log-exp
associate-/r*
add-exp-log add-cbrt-cube
pow1 expm1-log1p-u associate-+r+ fma-def sum-cubes log1p-expm1-u
flip3-+ sum-log flip-+ fma-udef associate-/l*
+-commutative associate-/r/
cbrt-undiv associate-+r- sub-neg associate-+l+ frac-2neg diff-log div-exp prod-diff clear-num div-inv
Counts
4 → 103
Calls
4 calls:
17.0ms
(+ (* x x) (- (* 1.0 1.0) (* x 1.0)))
35.0ms
(/ 1.0 (+ (pow x 3) (pow 1.0 3)))
9.0ms
(+ (fma (/ 1.0 (+ (pow x 3) (pow 1.0 3))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))
0.0ms
(fma (/ 1.0 (+ (pow x 3) (pow 1.0 3))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1)))

series468.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* x x) (- (* 1.0 1.0) (* x 1.0)))
69.0ms
(/ 1.0 (+ (pow x 3) (pow 1.0 3)))
312.0ms
(+ (fma (/ 1.0 (+ (pow x 3) (pow 1.0 3))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))
61.0ms
(fma (/ 1.0 (+ (pow x 3) (pow 1.0 3))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1)))

simplify64.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
05091187
122561068
250021039

prune418.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize29.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0)))
0.1b
(/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2)))
9.5b
(+ (fma (* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))
18.8b
(fma (* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1)))

rewrite72.0ms

Algorithm
rewrite-expression-head
Rules
49×*-un-lft-identity
42×times-frac
35×add-sqr-sqrt add-cube-cbrt
30×associate-*r*
27×add-exp-log
24×cbrt-prod
17×add-cbrt-cube
10×prod-exp cbrt-unprod
pow1
distribute-lft-out
cbrt-undiv div-exp associate-/l* add-log-exp
expm1-log1p-u log1p-expm1-u
fma-def pow-prod-down associate-*l/ associate-/r* fma-udef
flip3-+ associate-/r/ flip-+ div-inv
+-commutative frac-times associate-+l+ associate-+r+ frac-2neg associate-*r/ associate-*l* clear-num sum-log *-commutative
Counts
4 → 128
Calls
4 calls:
56.0ms
(* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0)))
6.0ms
(/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2)))
6.0ms
(+ (fma (* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))
0.0ms
(fma (* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1)))

series836.0ms

Counts
4 → 12
Calls
4 calls:
200.0ms
(* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0)))
92.0ms
(/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2)))
426.0ms
(+ (fma (* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))
118.0ms
(fma (* (* (/ (cbrt 1.0) (fma 1.0 (- 1.0 x) (pow x 2))) (cbrt 1.0)) (/ (cbrt 1.0) (+ x 1.0))) (+ (* x x) (- (* 1.0 1.0) (* x 1.0))) (- (* (/ 2.0 x) 1)))

simplify105.0ms

Algorithm
egg-herbie
Counts
140 → 140
Iterations

Useful iterations: 2 (81.0ms)

IterNodesCost
07302160
136641935
250011888

prune648.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.2b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma 2.0 (/ 1 (pow x 5)) (* 2.0 (/ 1 (pow x 3))))
0.1b
(/ 1 (pow x 5))
0.2b
(/ 1 (pow x 3))
0.2b
(/ 1 (pow x 7))

rewrite36.0ms

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

series277.0ms

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

simplify47.0ms

Algorithm
egg-herbie
Counts
207 → 207
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0430931
12266731
25001726

prune351.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

regimes47.0ms

Accuracy

100% (0.0b remaining)

Error of 0.0b against oracle of 0.0b and baseline of 30.8b

bsearch134.0ms

Steps
ItersRangePoint
10
26.826342714152005
1.350953981158519e+19
113.41563460603244
8
-4116.604674393256
-5.56536991933885
-113.04458049344059

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06436
17336
27336

end0.0ms

sample641.0ms

Algorithm
intervals
Results
212.0ms1887×body640valid
122.0ms4130×body80valid
79.0ms930×body320valid
77.0ms574×body1280valid
26.0ms480×body160valid