MathGroup Archive 2005

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

Search the Archive

Re: display of function

  • To: mathgroup at
  • Subject: [mg58521] Re: display of function
  • From: David Bailey <dave at>
  • Date: Tue, 5 Jul 2005 06:34:13 -0400 (EDT)
  • References: <dad7oo$t91$>
  • Sender: owner-wri-mathgroup at


You are confusing two distinct kinds of Mathematica notation here. 
Vectors and subscripted variables are not the same thing (at least by 
default) even though vector components are often referred to using 
subscript notation in conventional mathematics.

You could use either notation consistently, so lets use Mathematica 
vector notation:





Alternatively, you may prefer the longer (less efficient) definition for 
u because perhaps you really have a more complex summation than that 
presented here:

u[y_] := Sum[p[[i]]*y[[i]], {i, 1, Length[y]}]

Working with subscripted variables is slightly trickier, but it is more 
visually appealing. I would start with vector notation and think about 
subscripted variables a bit later.

David Bailey

  • Prev by Date: Re: display of function
  • Next by Date: Re: display of function
  • Previous by thread: Re: display of function
  • Next by thread: Re: display of function