Sponsored links: Algebra eBooks
 

Related

define_variable-exp-float-plot2d-sqrt
plot2d(f(x),[x,-9,10]);

define_variable(s, 2....

define_variable(m, 1....

f(x):= (1/(sqrt(2*%pi...

Calculate

define_variable-sum

define_variable(r, 10...

C(n,r) := n! /r! /(n-...

a(r, r+1) = 1 / (r + 1);

Calculate

define_variable-load-true

load("simplex");

define_variable(x1,0,...

define_variable(x2,0,...

Calculate

define_variable-exp-float-plot2d-sqrt
plot2d(f(x),[x,0,5]);

define_variable(s, 0....

define_variable(m, 1....

f(x):= (1/(sqrt(2*%pi...

Calculate

define_variable-load-true

load("simplex");

define_variable(x1,0,...

define_variable(x2,0,...

Calculate

define_variable-exp-float-plot2d-sqrt
plot2d(f(x),[x,-9,10]);

define_variable(s, 2....

define_variable(m, 1....

f(x):= (1/(sqrt(2*%pi...

Calculate

define_variable-exp-float-plot2d-sqrt
plot2d(f(x),[x,-9,10]);

define_variable(s, 0....

define_variable(m, 1....

f(x):= (1/(sqrt(2*%pi...

Calculate

define_variable-exp-float-plot2d-sqrt
plot2d(f(x),[x,-9,10]);

define_variable(s, 0....

define_variable(m, 1....

f(x):= (1/(sqrt(2*%pi...

Calculate

define_variable-load-true

load("simplex");

define_variable(x1,0,...

maximize_lp( 9*x1 + 7...

Calculate

define_variable-exp-float-plot2d-sqrt
plot2d(f(x),[x,-9,10]);

define_variable(s, 2....

define_variable(m, 1....

f(x):= (1/(sqrt(2*%pi...

Calculate

define_variable

Run Example
(%i1)define_variable (foo, 0, float);
(%o1)                                  0
(%i2) fpprec : 600;
(%o2)                                 600
(%i3) for m:301 step 1 thru 310 do(foo: bfloat(sum(k^m/3^k,k,1,2100)),foo: foo-floor(foo),disp(m,foo));
                                      301

                                     0.0b0

                                      302

                                     0.0b0

                                      303

                                     0.0b0

                                      304

                                     0.0b0

                                      305

                                     0.0b0

                                      306

                                     0.0b0

                                      307

                                     0.0b0

                                      308

                                     0.0b0

                                      309

                                     0.0b0

                                      310

                                     0.0b0

(%o3)                                done
(%i4) 
Run Example
define_variable (foo, 0, float);
(%o1)                                  0
(%i2) fpprec : 500;
(%o2)                                 500
(%i3) for m:235 step 1 thru 240 do(foo: bfloat(sum(k^m/3^k,k,1,1600)),foo: foo-floor(foo),display(m,foo));
                                    m = 235

foo = 3.7499999997641358810161203538602832816033925565988114918865340065182420\
250821299531333401866804356816399055548135196192622739967339898572995515735328\
80865968763828277587890625b-1

                                    m = 236

foo = 9.9999996222332834726840208423632122960097801810067714298957422162555389\
344205008447493940540360103551404937276431582587242363909484088591028694281703\
792512416839599609375b-1

                                    m = 237

foo = 4.9993949577847139134496954982637287399293782774214775464343677918505651\
667114528501320348738618294869871330733817368745242060157352170790545642375946\
044921875b-1

                                    m = 238

foo = 5.2809463154555803356572125584250686642053157898138575239728442114383679\
779603604957640545937378959169233314581860111447397798656311351805925369262695\
3125b-1

                                    m = 239

foo = 2.6215522876988475088229031569014713444651095398411877751663836814673017\
3016941272203089965769764186210959155953759136536973528563976287841796875b-1

                                    m = 240

foo = 2.8274112528112713824987983996578358406734506592276903433560833131533899\
8740723806312437648409030370444394719697811524383723735809326171875b-1

(%o3)                                done
(%i4) 
Run Example
define_variable (foo, 0, float);
(%o1)                                  0
(%i2) fpprec : 180;
(%o2)                                 180
(%i3) for m:70 step 1 thru 100 do(foo: bfloat(sum(k^m/3^k,k,1,600)),foo: foo-floor(foo),display(m,foo));
                                    m = 70

                                 foo = 7.5b-1

                                    m = 71

                                foo = 5.625b-1

                                    m = 72

                                  foo = 0.0b0

                                    m = 73

                                 foo = 2.5b-1

                                    m = 74

                                 foo = 5.0b-1

                                    m = 75

                                 foo = 3.75b-1

                                    m = 76

                                  foo = 0.0b0

                                    m = 77

                                  foo = 0.0b0

                                    m = 78

                                 foo = 8.75b-1

                                    m = 79

foo = 4.0624999999999999999999999999999999999999999999999999999999999999985163\
175397250314457073058953809441946529740884968835990187843764329674639617482564\
010751669107166249854644323456b-1

                                    m = 80

foo = 9.9999999999999999999999999999999999999999999999999999999999999994302659\
352544120751516054638262825707467420499828033020232132005502595061613113304580\
1286409371518399441834202071022b-1

                                    m = 81

foo = 2.4999999999999999999999999999999999999999999999999999999999996475245252\
773962704937932469538601504353177482560276428516945667404272144784646097766906\
2525264512716454681426347939066b-1

                                    m = 82

foo = 4.9999999999999999999999999999999999999999999999999999999997876396036429\
885392437088141647532602898576447423901715829243955203015272885425400695978829\
1083502282134351513143144529749b-1

                                    m = 83

foo = 6.2499999999999999999999999999999999999999999999999999998723037264982893\
721694038056164318505830880254978416504287650870645153799255939317869054522294\
6035658004304558232888666680083b-1

                                    m = 84

foo = 9.9999999999999999999999999999999999999999999999999999231811080451931512\
016673872196409367343969383486119221355172241497192248890403354793242062409927\
9088392577818922291044145822525b-1

                                    m = 85

foo = 2.4999999999999999999999999999999999999999999999999537845311054004500395\
743419711905019367465041422265444254994573041356851201383037956938381815574778\
9546694548334926366806030273438b-1

                                    m = 86

foo = 2.4999999999999999999999999999999999999999999999721958342691655189562760\
778475164730222986759243103271951975962705184405281279815254726929529827117448\
803619481623172760009765625b-1

                                    m = 87

foo = 1.8749999999999999999999999999999999999999999832723316731377251711570110\
611326697544653158570614460269507191317990198799686817207003214358351783630496\
3566362857818603515625b-1

                                    m = 88

foo = 9.9999999999999999999999999999999999999999899361955244803754326419188723\
008400555721520759352520273711139404260786258012827900157337701614324032561853\
52802276611328125b-1

                                    m = 89

foo = 2.4999999999999999999999999999999999999939453339264398693742208196506300\
226250397632299714815274217764485979219976250712692555921989878697786480188369\
7509765625b-1

                                    m = 90

foo = 4.9999999999999999999999999999999999963573333703254476873380954644185049\
338020617940235677146651143278675613590943116459897055392502807080745697021484\
375b-1

                                    m = 91

foo = 3.7499999999999999999999999999999978084575431263973290689842995383511335\
495782361929948443799558835385125031558484209881498827598989009857177734375b-1

                                    m = 92

foo = 4.9999999999999999999999999999986814955941536258679941395162056580558756\
439067787141086713999902518303086740303342594415880739688873291015625b-1

                                    m = 93

foo = 1.2499999999999999999999999992067418882919484182917400853146411258930418\
434125424760386120597022152622912471997551620006561279296875b-1

                                    m = 94

foo = 6.2499999999999999999999952274696079479087849315991191098516956974076318\
1970254723507363081580479047261178493499755859375b-2

                                    m = 95

foo = 6.7187499999999999999997128663228442504935692277894818959705504712925661\
0585735197405110596946542500518262386322021484375b-1

                                    m = 96

foo = 9.9999999999999999998272489019259291472716089658265255696217144228284644\
247306545139508671127259731292724609375b-1

                                    m = 97

foo = 2.4999999999999998960657326428901569043642753970246614242605267316305051\
0396487879916094243526458740234375b-1

                                    m = 98

foo = 4.9999999999999374686269772766627016492084469273908480495141951061022211\
88848488964140415191650390625b-1

                                    m = 99

foo = 1.2499999999623782980456322194462202028239671181317855738757138794881029\
75301444530487060546875b-1

                                    m = 100

foo = 9.9999999773650163436329932117101516231721822182063053041645162011263892\
05455780029296875b-1

(%o3)                                done
(%i4) 

Related Help

Help for Define_variable