Sponsored links: Algebra eBooks
 

Related

entier

(20971519.0 / 4096);

entier (20971519 / 40...

entier (20971519 / 40...

Calculate

entier-plot2d-sin
plot2d(5*entier(sin(x)),[x,-5,5]);

plot2d(5*entier(sin(x...

Calculate

entier-plot2d-sin
plot2d(sin(10*x+3.14*(entier(sin(x))+0.5)),[x,-10,10]);

plot2d(sin(10*x+3.14*...

Calculate

entier

(136318976.0 / 4096);

(20973568 / 4096) + .0;

entier (136314880 / 4...

Calculate

entier-mod

a(n):=(n+1)/2+3/4*(-1...

a(3);

a(4);

Calculate

entier

(20971519.0 / 4096);

(20973568 / 4096) + .0;

entier (136314880 / 4...

Calculate

entier

(20971519.0 / 4096);

(20973568 / 4096) + .0;

entier (20971519 / 40...

Calculate

entier

(20971519.0 / 4096);

(20973568 / 4096);

entier (20971519 / 40...

Calculate

entier-plot2d-sin
plot2d(sin(entier(sin(x))+0.5),[x,-5,5]);

plot2d(sin(entier(sin...

Calculate

entier

(20971519.0 / 4096);

entier (20971519 / 40...

entier (20971519 / 40...

Calculate

entier

Run Example
(%i1)d: 6;
(%o1)                                  6
(%i2) s: 50;
(%o2)                                 50
(%i3) g: 0;
(%o3)                                  0
(%i4) for i: 1 thru d step 1 do g: g + 1/d * x^i ;
(%o4)                                done
(%i5) display(g);
                             6    5    4    3    2
                            x    x    x    x    x    x
                        g = -- + -- + -- + -- + -- + -
                            6    6    6    6    6    6

(%o5)                                done
(%i6) n_min: entier((s-1)/d)+1 ;
(%o6)                                  9
(%i7) n_max: s ;
(%o7)                                 50
(%i8) display(n_min);
                                   n_min = 9

(%o8)                                done
(%i9) display(n_max);
                                  n_max = 50

(%o9)                                done
(%i10) media: 0;
(%o10)                                 0
(%i11) media_quadrati: 0;
(%o11)                                 0
(%i12) varianza: 0;
(%o12)                                 0
(%i13) p_t: 0;
(%o13)                                 0
(%i14) g_i: expand(g^(n_min-1));
          48       47       46       45       44       43        42        41
         x        x        x      5 x     55 x     11 x     427 x     421 x
(%o14) ------- + ------ + ----- + ----- + ------ + ------ + ------- + -------
       1679616   209952   46656   69984   279936   23328    419904    209952
        40        39         38       37         36         35        34
   683 x     655 x     2101 x     59 x     2293 x     3143 x     457 x
 + ------- + ------- + -------- + ------ + -------- + -------- + -------
   186624    104976     209952     3888     104976     104976     11664
         33          32         31          30          29         28
   5149 x     98813 x     1579 x     31397 x     16661 x     7553 x
 + -------- + --------- + -------- + --------- + --------- + --------
    104976     1679616     23328      419904      209952      93312
          27          26         25          24         23        22         21
   16661 x     31397 x     1579 x     98813 x     5149 x     457 x     3143 x
 + --------- + --------- + -------- + --------- + -------- + ------- + --------
    209952      419904      23328      1679616     104976     11664     104976
         20       19         18        17        16        15        14
   2293 x     59 x     2101 x     655 x     683 x     421 x     427 x
 + -------- + ------ + -------- + ------- + ------- + ------- + -------
    104976     3888     209952    104976    186624    209952    419904
       13       12      11     10       9        8
   11 x     55 x     5 x      x        x        x
 + ------ + ------ + ----- + ----- + ------ + -------
   23328    279936   69984   46656   209952   1679616
(%i15) for i:n_min thru n_max step 1 do                           (p_i: 0,                            for j: 1 thru d step 1 do (p_i: p_i + j/d * coeff(g_i,x,s-d+j-1)),                            g_i: expand(g_i*g),                            p_t: p_t + p_i,                            media: media + i*p_i,                            media_quadrati: (media_quadrati + i*i*p_i));
(%o15)                               done
(%i16) p_t: float(p_t);
(%o16)                                1.0
(%i17) deviazione_standard:(sqrt(media_quadrati - media*media));
(%o17) sqrt(637845672299681810827365024044257898719831490818609442910024866172\
52023761231)/134713546244127343440523266742756048896
(%i18) media: float(media);
(%o18)                         14.76190478032561
(%i19) deviazione_standard: float(deviazione_standard);
(%o19)                         1.874763708173404
(%i20) display(p_t);
                                   p_t = 1.0

(%o20)                               done
(%i21) display(media);
                           media = 14.76190478032561

(%o21)                               done
(%i22) display(deviazione_standard);
                    deviazione_standard = 1.874763708173404

(%o22)                               done
(%i23) 
Run Example
(20971519.0 / 4096);
(%o1)                          5119.999755859375
(%i2)  (20973568 / 4096) + .0;
(%o2)                               5120.5
(%i3) entier (20971519 / 4096)*4096;
(%o3)                              20967424
(%i4) entier (20971519 / 4096)*4096;
(%o4)                              20967424
(%i5) entier (20971519 / 4096)*4096;
(%o5)                              20967424
(%i6) 
Run Example
(136314879.0 / 4096);
(%o1)                          33279.99975585938
(%i2)  (20973568 / 4096) + .0;
(%o2)                               5120.5
(%i3) entier (136314880 / 4096)*4096;
(%o3)                              136314880
(%i4) entier (136314880 / 4096+1)*4096;
(%o4)                              136318976
(%i5) entier (20971519 / 4096)*4096;
(%o5)                              20967424
(%i6) 136314880+4096;
(%o6)                              136318976
(%i7) 47244640256/512;
(%o7)                              92274688
(%i8) 136318976+47244640256/512;
(%o8)                              228593664
(%i9) 

Related Help

Help for Entier