Define A and B as same sized lists or arrays and then just write:
C = A + 1/2 B
But symbols that begin with capitals could conflict with Mathematica symbols
so I woul use names like:
cVector = aVector + 1/2 bVector
cMatrix = aMatrix + 1/2 bMatrix
Of course, you have to fill aVector and bVector with values to begin with.
Look up CORE LANGUAGE, Lists and DATA MANIPULATION, Arrays in the
Documentation Center.
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
From: John Ertle Jr. [mailto:ertlejack at sbcglobal.net]
I want to subtract array A by 1/2 array B and put it in array C. I need
something like this except more complicated later. This is what I have thus
far:
C:=C=Simplify[Table[A[i]-1/2*B[i],{i,1,9}]]