Sponsored links: Algebra eBooks
 

Related

arrays-listarray

for i:1 thru 3 do blo...

listarray(a);

listarray(b);

Calculate

arrays

described(arrays);

Calculate

arrays-define-functions-sqrt

F_1 (x) := x - 100;

F_2 (x, y) := x / y;

define (F_3 (x), sqr...

Calculate

arrays

a[1,2]:3;

arrays;

Calculate

arrays-example

example(arrays);

Calculate

arrays-define-functions-sqrt

f_1 (x) := x - 100;

f_2 (x, y) := x / y;

define (f_3 (x), sqr...

Calculate

arrays

Run Example
(%i1)f_1 (x) := x - 100;
(%o1)                          f_1(x) := x - 100
(%i2)  f_2 (x, y) := x / y;
                                             x
(%o2)                           f_2(x, y) := -
                                             y
(%i3)  define (f_3 (x), sqrt (x));
(%o3)                          f_3(x) := sqrt(x)
(%i4)  g_1 [x] := x - 100;
(%o4)                           g_1  := x - 100
                                   x
(%i5)  g_2 [x, y] := x / y;
                                            x
(%o5)                            g_2     := -
                                    x, y    y
(%i6)  define (g_3 [x], sqrt (x));
(%o6)                           g_3  := sqrt(x)
                                   x
(%i7)  h_1 [x] (y) := x^y;
                                             y
(%o7)                            h_1 (y) := x
                                    x
(%i8)  functions;
(%o8)                     [f_1(x), f_2(x, y), f_3(x)]
(%i9)  arrays;
(%o9)                        [g_1, g_2, g_3, h_1]
(%i10) 
Run Example
example(arrays);

(%i1) 
(%i2) a[n]:=n*a[n-1]
(%o2)                           a  := n a
                                 n       n - 1
(%i1) 
(%i3) a[0]:1
(%i1) 
(%i4) a[5]
(%o4)                                 120
(%i1) 
(%i5) a[n]:=n
(%i1) 
(%i6) a[6]
(%o6)                                  6
(%i1) 
(%i7) a[4]
(%o7)                                 24
(%o7)                                done
(%i8) 
Run Example
array (aa, 5, 7);
(%o1)                                 aa
(%i2)  bb [foo] : (a + b)^2;
                                          2
(%o2)                              (b + a)
(%i3)  cc [x] := x/100;
                                          x
(%o3)                             cc  := ---
                                    x    100
(%i4)  dd : make_array ('any, 7);
(%o4)              {Array:  #(NIL NIL NIL NIL NIL NIL NIL)}
(%i5)  arrays;
(%o5)                            [aa, bb, cc]
(%i6) 

Related Help

Help for Arrays