Re: vector representation
- To: mathgroup at smc.vnet.net
- Subject: [mg82765] Re: vector representation
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 30 Oct 2007 05:44:10 -0500 (EST)
- Organization: Uni Leipzig
- References: <fg6r8c$e19$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, no you have the unit vectors i, j, k. These vectors form a basis in 3d space and you can represent any vector by it's coordinates as a List[] {a,b,c} and you can just type {a,b,c}+{d,e,f} to get the vector addition of {a,b,c} and {d,e,f}. Regards Jens Vlad Luca wrote: > Hi, > Having the vector r(a,b,c) = {a i, b j, c k} where i, j, k are the unit vectors and a, b, c arbitrary coefficients, I want to calculate, for example r(1,2,1) etc. Also I want to be able to add 2 or more of such vectors trough their indexes, for example: r(0,0,1) + r(1,2,3) and the sum to be expressed like this r(1,2,4) and not like {1i, 2j, 4k}. > Thank You in advance! >