Sponsored links: Algebra eBooks
 

Related

member

member(1, [1,2,3]);

Calculate

member-setify

member (8, setify([8,...

Calculate

member

member(a,[b,c,d,a]);

Calculate

member

member([true,true],[[...

Calculate

member

member([true,true],[[...

Calculate

member

member(a,[b,c,d,a]);

Calculate

member

member(a,[b,c,d,a1]);

Calculate

member

member(1,[1]);

Calculate

member

member(1, [1,2,3]);

Calculate

member

member([true,true],[[...

Calculate

member

Run Example
(%i1)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) 
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) 'D5=D5:diag_matrix(5,9,6,3,2,4);
                                [ 5  0  0  0  0  0 ]
                                [                  ]
                                [ 0  9  0  0  0  0 ]
                                [                  ]
                                [ 0  0  6  0  0  0 ]
(%o13)                     D5 = [                  ]
                                [ 0  0  0  3  0  0 ]
                                [                  ]
                                [ 0  0  0  0  2  0 ]
                                [                  ]
                                [ 0  0  0  0  0  4 ]
(%i14) 
Run Example
member(1, [1,2,3]);
(%o1)                                true
(%i2) 

Related Help

Help for Member