MathGroup Archive 2010

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

Search the Archive

Re: Symplify Table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109041] Re: Symplify Table
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 11 Apr 2010 04:32:31 -0400 (EDT)

C is a reserved word. To avoid conflict with built-in names, always start your names with a lower case letter.

n = 3;

mA = Array[a, {n, n}];
mB = Array[b, {n, n}];

mC = mA + mB/2

{{a[1, 1] + (1/2)*b[1, 1], a[1, 2] + (1/2)*b[1, 2], 
     a[1, 3] + (1/2)*b[1, 3]}, {a[2, 1] + (1/2)*b[2, 1], 
     a[2, 2] + (1/2)*b[2, 2], a[2, 3] + (1/2)*b[2, 3]}, 
   {a[3, 1] + (1/2)*b[3, 1], a[3, 2] + (1/2)*b[3, 2], 
     a[3, 3] + (1/2)*b[3, 3]}}


Bob Hanlon

---- "John Ertle Jr." <ertlejack at sbcglobal.net> wrote: 

=============
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: How do you get Mathematica to evaluate "Floor" to give a number?
  • Next by Date: Re: Symplify Table
  • Previous by thread: Symplify Table
  • Next by thread: Re: Symplify Table