MathGroup Archive 1999

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

Search the Archive

Re: Matrices-in-functions question


mat = Array[b, {3, 3}];

z[m_] := m[[1, 1]] * a + m[[1, 2]]


a b[1, 1] + b[1, 2]

Bob Hanlon

In a message dated 10/26/1999 7:47:53 AM, aram at writes:

>Here is a simple one, but I can't work it out.
>I would like to be able to define a function this way:
>z=mat[[1]][[1]] a + mat[[1]][[2]]
>without specifying what "mat" is explicitly. I would evaluate it later
>Of course, Mathematica complains about the definition (Part specification
>mat[[1]] is
>longer than depth of object) ... is there a way to make this fly?

  • Prev by Date: Re: Basic Laplace Transforms
  • Next by Date: second y-axis in a graph
  • Previous by thread: Matrices-in-functions question
  • Next by thread: Re: Matrices-in-functions question