Sponsored links: Algebra eBooks
 

Related

create_list-ev-float-length-load-matrix-plot2d
 plot2d([[discrete,p],y(x)],[x,1,5],[style,points,lines],[point_type,asterisk]);

M:matrix([1,2],[3,4],...

load(lsquares);

l:lsquares_estimates...

Calculate

create_list-makelist-matrix-member-part-random

L:makelist(k^2,k,0,9);

member(81,L);

create_list(random(10...

Calculate

create_list-mod

f(x):=x^3+15*x^2+29*x+8;

p:[2,3,5,6,11,13,17,1...

create_list([mod(f(p[...

Calculate

create_list-ratsimp

a[1]:1;

a[n]:=(2+a[n-1])/(1-2...

create_list(ratsimp(a...

Calculate

create_list

create_list(0+i,i,[1....

Calculate

create_list-sort

sort(create_list((100...

Calculate

create_list

Run Example
(%i1)eq:x^8-x^7+x^5-x^4+x^3-x+1;
                         8    7    5    4    3
(%o1)                   x  - x  + x  - x  + x  - x + 1
(%i2) eq2:ev(eq,x=x-4);
                     8          7          5          4          3
(%o2)   - x + (x - 4)  - (x - 4)  + (x - 4)  - (x - 4)  + (x - 4)  + 5
(%i3) eq3:expand(eq2);
       8       7        6         5          4          3           2
(%o3) x  - 33 x  + 476 x  - 3919 x  + 20139 x  - 66127 x  + 135444 x
                                                             - 158161 x + 80581
(%i4) eq4:create_list(coeff(eq3,x,i),i,0,7);
(%o4)    [80581, - 158161, 135444, - 66127, 20139, - 3919, 476, - 33]
(%i5) map(gcd,eq4);
(%o5) [spmod(80581), spmod(- 158161), spmod(135444), spmod(- 66127), 
                          spmod(20139), spmod(- 3919), spmod(476), spmod(- 33)]
(%i6) 
Run Example
a[1]:1;
(%o1)                                  1
(%i2) a[n]:=(2-a[n-1])/(3-a[n-1]);
                                     2 - a
                                          n - 1
(%o2)                          a  := ----------
                                n    3 - a
                                          n - 1
(%i3) create_list(ratsimp(a[k]),k,1,20);
          1  3  7   17  41  99   239  577  1393  3363  8119   19601  47321
(%o3) [1, -, -, --, --, --, ---, ---, ---, ----, ----, -----, -----, -----, 
          2  5  12  29  70  169  408  985  2378  5741  13860  33461  80782
                           114243  275807  665857   1607521  3880899  9369319
                           ------, ------, -------, -------, -------, --------]
                           195025  470832  1136689  2744210  6625109  15994428
(%i4) 
Run Example
L:makelist(k^2,k,0,9);
(%o1)                [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
(%i2) member(81,L);
(%o2)                                true
(%i3) create_list(random(10),m,0,5);
(%o3)                         [2, 2, 4, 5, 4, 1]
(%i4) part(L,[6,5,1]);
(%o4)                             [25, 16, 0]
(%i5) 'A=A:matrix([1,2,3,4],[5,6,7,8],[9,10,11,12]);
                                 [ 1  2   3   4  ]
                                 [               ]
(%o5)                        A = [ 5  6   7   8  ]
                                 [               ]
                                 [ 9  10  11  12 ]
(%i6) a1=row(A,1);
(%o6)                         a1 = [ 1  2  3  4 ]
(%i7) a[1]=col(A,2);
                                       [ 2  ]
                                       [    ]
(%o7)                             a  = [ 6  ]
                                   1   [    ]
                                       [ 10 ]
(%i8) 'A=submatrix(1,A);
                                 [ 5  6   7   8  ]
(%o8)                        A = [               ]
                                 [ 9  10  11  12 ]
(%i9) 'A2=submatrix(A,2);
                                   [ 1  3   4  ]
                                   [           ]
(%o9)                         A2 = [ 5  7   8  ]
                                   [           ]
                                   [ 9  11  12 ]
(%i10) 'A12=submatrix(1,A,2);
                                    [ 5  7   8  ]
(%o10)                        A12 = [           ]
                                    [ 9  11  12 ]
(%i11) f[i,j]:=2*i+3*j;
(%o11)                        f     := 2 i + 3 j
                               i, j
(%i12) B1=B1:genmatrix(f,4,3);
                                   [ 5   8   11 ]
                                   [            ]
                                   [ 7   10  13 ]
(%o12)                        B1 = [            ]
                                   [ 9   12  15 ]
                                   [            ]
                                   [ 11  14  17 ]
(%i13) 

Related Help

Help for Create_list