Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Symplify Table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109025] Re: Symplify Table
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sun, 11 Apr 2010 04:29:37 -0400 (EDT)

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}]]




  • Prev by Date: Re: Symplify Table
  • Next by Date: Re: How do you get Mathematica to evaluate "Floor" to give a number?
  • Previous by thread: Re: Symplify Table
  • Next by thread: Re: Symplify Table