# Gram-smith Process

### #1

Posted 27 May 2006 - 12:02 AM

This process could to have a ortogonal dimension of vector, family of vectors, i hope anyone knows this process, in classpad i cant made a program to solve that.

My problem is:

Its possible to store a matrix in a variable?

When i doing a thing similiar to this if v1=(a,b,c,...,n),v2=(a1,b1,c1,...,n1),v3=(a2,b2,c2,...,n2),vn=(ai,bi,ci,...,ni) VECTORS

Gram-Smith process is:

(<v2,w1> and others are dot product of vectors)

||wn|| is norm of vector

w1=v1 //main vector

w2= v2- ((<v2,w1>)/(||w1||?))*w1 //second vector ortogonal to w1//

w3= v3- ((<v3,w1>)/(||w1||?))*w1- ((<v3,w2>)/(||w2||?))*w2 //second vector ortogonal to w1//

wn= vn- ((<vn,v1>)/(||v1||?))*v1- ......((<v3,wn-1>)/(||wn-1||?))*wn-1 //n vector ortogonal to w1,w2,wn-1//

its possible to store w1 vector, w2 vector, wn vector, whit no overwrite a K variable (k its a ny variable)

i did do whit k={} but this notation doesnt support matrix stord in a variable and viceverza when i doing whit matrix and in that sotore a list

how does solve this problem???

### #2

Posted 27 May 2006 - 12:09 AM

### #3

Posted 29 May 2006 - 01:10 PM

Hi my question is about Gram-Smith process.

This process could to have a ortogonal dimension of vector, family of vectors, i hope anyone knows this process, in classpad i cant made a program to solve that.

My problem is:

Its possible to store a matrix in a variable?

When i doing a thing similiar to this if v1=(a,b,c,...,n),v2=(a1,b1,c1,...,n1),v3=(a2,b2,c2,...,n2),vn=(ai,bi,ci,...,ni) VECTORS

Gram-Smith process is:

(<v2,w1> and others are dot product of vectors)

||wn|| is norm of vector

w1=v1 //main vector

w2= v2- ((<v2,w1>)/(||w1||?))*w1 //second vector ortogonal to w1//

w3= v3- ((<v3,w1>)/(||w1||?))*w1- ((<v3,w2>)/(||w2||?))*w2 //second vector ortogonal to w1//

wn= vn- ((<vn,v1>)/(||v1||?))*v1- ......((<v3,wn-1>)/(||wn-1||?))*wn-1 //n vector ortogonal to w1,w2,wn-1//

its possible to store w1 vector, w2 vector, wn vector, whit no overwrite a K variable (k its a ny variable)

i did do whit k={} but this notation doesnt support matrix stord in a variable and viceverza when i doing whit matrix and in that sotore a list

how does solve this problem???

I don't understand what do you exactly mean.

Storing vector in a variable is easy. Just use matrix notation for this. [1, 2, 3, 4]=>v1 where "=>" is store command.

If you want to create your variables in a program you can use # command. I show it in example in Main application.

DelVar v1 done "v1"=>varName "v1" [1,2,3,4]=>#varName [1, 2, 3, 4] v1 [1, 2, 3, 4]

When using StrJoin function you can create vars in cycle with increasing number in name.

If I didn't write what you wanted then I'm sorry.

PS: Sorry for my english

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users