Sponsored links: Algebra eBooks
 

Related

random

random(100000);

Calculate

random

a:-5+random(10);

if a=0 then a:5;

b:12+random(4);

Calculate

random

[random (10), random(...

Calculate

random

random(24.5);

random(24.5);

Calculate

random

for i:1 thru 6 do dis...

Calculate

random

random(2.0)-1;

Calculate

random

random(15);

Calculate

random

[random(1000),random(...

Calculate

random

random(2.0)-1;

Calculate

random

[random(1000),random(...

Calculate

random

Run Example
(%i1)load (descriptive);
(%o1) /usr/share/maxima/5.21.1/share/contrib/descriptive/descriptive.mac
(%i2) l1:makelist(random(10),k,1,50);
(%o2) [2, 2, 4, 5, 4, 1, 9, 5, 8, 3, 5, 5, 0, 6, 9, 0, 9, 4, 7, 6, 9, 9, 3, 9, 
  6, 6, 6, 3, 0, 1, 2, 9, 9, 8, 6, 5, 3, 3, 7, 8, 4, 6, 5, 0, 7, 6, 5, 4, 7, 2]
(%i3) mean(l1);
                                      126
(%o3)                                 ---
                                      25
(%i4) mean(l1),numer;
(%o4)                                5.04
(%i5) M:mean(l1),numer;
(%o5)                                5.04
(%i6) SM:smin(l1),numer;
(%o6) smin([2, 2, 4, 5, 4, 1, 9, 5, 8, 3, 5, 5, 0, 6, 9, 0, 9, 4, 7, 6, 9, 9, 
3, 9, 6, 6, 6, 3, 0, 1, 2, 9, 9, 8, 6, 5, 3, 3, 7, 8, 4, 6, 5, 0, 7, 6, 5, 4, 
7, 2])
(%i7) SN:smax(l1),numer;
(%o7) smax([2, 2, 4, 5, 4, 1, 9, 5, 8, 3, 5, 5, 0, 6, 9, 0, 9, 4, 7, 6, 9, 9, 
3, 9, 6, 6, 6, 3, 0, 1, 2, 9, 9, 8, 6, 5, 3, 3, 7, 8, 4, 6, 5, 0, 7, 6, 5, 4, 
7, 2])
(%i8) 
Run Example
for n:1 thru 10 do(kill(h),h[i,j]:=random(5)+1,A:genmatrix(h,3,3),X:[x,y,z],b:[random(5)+1,random(5)+1,random(5)+1],C:list_matrix_entries(A.X),R:linsolve([C[1]=b[1],C[2]=b[2],C[3]=b[3]], [x,y,z]),print(C[1]=b[1],C[2]=b[2],C[3]=b[3],R));
5 z + 3 y + 3 x = 4 2 z + 5 y + x = 1 4 z + y + 5 x = 1 
                                                          23        5       3
                                                   [x = - --, y = - --, z = -] 
                                                          24        24      2
5 z + 2 y + x = 5 5 z + 5 y + x = 4 5 z + 2 y + 3 x = 5 
                                                                    1      17
                                                      [x = 0, y = - -, z = --] 
                                                                    3      15
2 z + 2 y + 2 x = 4 2 z + y + 4 x = 2 5 z + 5 y + 3 x = 1 
                                                          9                27
                                                     [x = -, y = 11, z = - --] 
                                                          2                2
3 z + 4 y + 4 x = 2 2 z + 5 y + 4 x = 1 3 z + y + x = 5 [x = - 2, y = 1, z = 2]
                                                                               
4 z + 3 y + 3 x = 3 2 z + y + 4 x = 5 2 z + 2 y + 3 x = 2 
                                                                            3
                                                       [x = 1, y = - 2, z = -] 
                                                                            2
2 z + 2 y + 5 x = 4 z + 3 y + 4 x = 1 2 z + 3 y + 3 x = 3 
                                                         2         7       24
                                                    [x = --, y = - --, z = --] 
                                                         11        11      11
2 z + 5 y + 5 x = 4 z + 5 y + 2 x = 5 4 z + 4 y + 4 x = 1 
                                                         1       43        11
                                                  [x = - --, y = --, z = - --] 
                                                         36      36        12
3 z + 4 y + 2 x = 1 5 z + y + 4 x = 3 5 z + 5 y + 5 x = 2 
                                                         1         6       17
                                                  [x = - --, y = - --, z = --] 
                                                         25        25      25
z + 2 y + 3 x = 1 5 z + 2 y + 5 x = 2 3 z + y + 4 x = 4 
                                                        23        5        9
                                                   [x = --, y = - -, z = - --] 
                                                        10        2        10
2 z + 3 y + 2 x = 5 4 z + 3 y + 4 x = 4 3 z + 5 y + 2 x = 1 
                                                           15
                                                      [x = --, y = 2, z = - 8] 
                                                           2
(%o1)                                done
(%i2) 
Run Example
load(distrib);
(%o1)     /usr/share/maxima/5.21.1/share/contrib/distrib/distrib.mac
(%i2) load(draw);
(%o2)            /usr/share/maxima/5.21.1/share/draw/draw.lisp
(%i3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, 0, 1, 4, 8, 7, 1, 4, 
6])
(%i7) 
[abs,and,block,col,copy,fpprintprec,genmatrix,ident,invert,length,lmax,makelist,matrix_size,random,submatrix,sum,while] [addrow,do,genmatrix,kill,linsolve,print,random] [addrow,genmatrix,linsolve_params,print,random,tex1,true] [addrow,genmatrix,linsolve_params,random,true] [addrow,matrix,random] [append,ascii,block,concat,delete,divsum,first,if,random,second,slength,substring] [append,assoc,makelist,random] [append,block,floor,integerp,makelist,mod,plot2d,random] [append,block,makelist,random] [append,makelist,random,rest] [append,makelist,random] [array,block,cos,floor,mod,random,sin,subst] [array,block,float,listarray,plot2d,print,random] [array,cos,random,sin] [block,print,random] [block,random] [ceiling,col,do,endcons,float,genmatrix,kill,makelist,min,permanent,print,random,row,sort,sqrt,transpose] [ceiling,do,float,genmatrix,kill,permanent,print,random,row,sqrt] [col,do,endcons,genmatrix,kill,print,random,row,sqrt,transpose] [col,genmatrix,min,numer,permanent,print,random,row,sort,sqrt,transpose] [col,genmatrix,min,numer,permanent,random,row,sort,sqrt,transpose] [concat,max,min,print,random,round] [cos,expand,makelist,plot2d,random,sin,trigsimp] [delete,ifactors,member,random,true] [display,random] [do,first,genmatrix,kill,makelist,min,ordergreatp,permanent,permutations,print,random,rest,row,sort,sum] [do,genmatrix,kill,linsolve,print,random,tex1] [do,genmatrix,kill,linsolve,print,random] [echelon,genmatrix,lambda,random,row] [echelon,genmatrix,lambda,random] [expand,makelist,random] [float,pi,random] [float,random,round,simp,true] [genmatrix,ident,print,random] [genmatrix,invert,lambda,random] [genmatrix,lambda,random,string] [genmatrix,lambda,random,sum] [genmatrix,makelist,random,row,sort,sqrt] [genmatrix,numer,permanent,random,row,sqrt] [genmatrix,permanent,random] [genmatrix,random] [load,makelist,numer,random] [load,makelist,random] [lsum,makelist,random,sum] [makelist,random] [max,min,print,random,round] [next_prime,prev_prime,random] [plot3d,random] [random,sconcat,string] [random]

Related Help

Help for Random