You are on page 1of 7

XCELLv2

By Rui Seixas Monteiro

XCELL IN: 2: MATRIX A AA AAA X1 ? B BB BBB X2 ? C CC CCC X3 ? . . . . . . Z Xn ?

. . . . . . . . . n m

1: MATRIX Function1 (X1, X2, X3, ..., Xn) Function2 (X1, X2, X3, ..., Xn) Function3 (X1, X2, X3, ..., Xn) . . . FunctionL (X1, X2, X3, ..., Xn) L 1 OUT: 1: MATRIX Function1 (m = 1) (X1, X2, X3, ..., Xn) Function2 (m = 1) (X1, X2, X3, ..., Xn) Function3 (m = 1) (X1, X2, X3, ..., Xn) . . . FunctionL (m = 1) (X1, X2, X3, ..., Xn)

Function1 (m = 2) (X1, X2, X3, .. ., Xn) . . . Function1 (m = 2) (X1, X2, X3, ..., Xn) . . . Function1 (m = 2) (X1, X2, X3, ..., Xn) . . . Function1 (m = 2) (X1, X2, X3, ..., Xn) . . . Lm

Ex. (in 4.55s by TEVAL): IN: 1 2 3 4 2: 5 6 7 8 2 4

X1 + X2 COMB (X2, X1) 1: MAX (X1, X2 ) 31


OUT: 6 8 10 12 1: 5 15 35 70 5 6 7 8 3 4

XCROL IN: 3: First number of the column (n1) 2: Number of lines of the column (nn) 1: Program that make the relation of the n+1 element with the n element ( ? ) OUT: 1: MATRIX n1 n2 = n1 ? n3 = n1 ? . . . nn = n(n 1) ? nn1

Ex. (in 0.18s by TEVAL): IN: 3: 2 2: 5 1: 1 + OUT: 2 3 4 5 6 51

MAKEM IN: 3: Vector with n elements 2: Vector with m elements 1: Program that make the relation of the n elements with the m elements, producing a matrix nm. (A n m = Vn Vm ? ) OUT: 1: MATRIX Vm1 Vn1 ? Vm2 Vn1 ? Vm3 Vn1 ? . . . Vmm Vn1 ?

Vm1 Vn2 ? . . . Vm1 Vnn ? Vm2 Vn2 ? . . . Vm2 Vnn ? Vm3 Vn2 ? . . . Vm3 Vnn ?

Vmm Vn2 ? . . . Vmm Vnn ?

Ex. (in 1.13s by TEVAL): IN: 3: [ 1 2 3 4 ] 2: [ 5 6 7 8 ] 1: ^ OUT: 1 1 1 1 32 64 128 256 1: 243 729 2187 6561 1024 4096 16384 65536 44

EQMAT IN: 2: MATRIX 1: Program ? OUT: 1: MATRIX whit each element equal to those in the first MATRIX after the Program applied to each one.

Ex. (in 0.59s by TEVAL): IN: 1 2 3 4 2: 5 6 7 8 2 4 1: SQ OUT: 1 4 9 16 1: 25 36 49 64 24

COLAP IN: 3: MATRIX 2: n, Number of one column of the MATRIX 1: Program to apply to each element of the n column in the MATRIX OUT: 1: Same as the first MATRIX but now with the n column changed by de Program.

Ex. (in 0.51s by TEVAL): IN: 1 2 3 4 3: 5 6 7 8 2 4 2: 2 1: SQ OUT: 1 4 3 4 1: 5 36 7 8 24

MSUM IN: 1: MATRIX OUT: 1: MATRIX with the sum of the elements of the given MATRIX.

Ex. (in 0.64s by TEVAL): IN: 1 2 3 4 1: 5 6 7 8 2 4 OUT: 1: [36]11

LSUM IN: 1: MATRIX OUT: 1: MATRIX with the sum of the elements in the rows of the given MATRIX.

Ex. (in 0.40s by TEVAL): IN: 1 2 3 4 1: 5 6 7 8 2 4 OUT: 10 1: 26 21

NOTES: The XCELL program uses and discards the variables Xn, where the n assumes 1 to the number of lines of the 1.st MATRIX. The number of the library is 1777, I dont know if is a good number or not, but you can make odder with the open files and the CRLIB command in your HP-49G. The commands AXL, HADAMARD, TRAN and others about arrays are useful to be used with xcell program. I hope that some one turn the XCELL program faster, because besides be a versatile program they are a little slow, maybe because its made in UserRPL, if made in SystemRPL they be more fast. I do not have the time. Actually I use the 1.19-6 Version of ROM, and you can get it in the follow site: http://etud.epita.fr:8000/~avenar_j/hp/49.html ATTENCION: You will use the program at your own risk. Sorry if I write some mistake, I am not English.

Rui Seixas Monteiro rui_seixas@netcabo.pt

01-MAY-2003

You might also like