Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Symbolic vectors and differentiation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24700] Symbolic vectors and differentiation
  • From: Ralph Benzinger <ralph at ptolemy.arc.nasa.gov>
  • Date: Fri, 4 Aug 2000 01:19:25 -0400 (EDT)
  • Organization: The Final Frontier
  • Sender: owner-wri-mathgroup at wolfram.com

Hello world,

Does anybody know how to define or simulate "symbolic vectors",
i.e. something like

	v = Table[i, {i, 1, n}]

but where n is a symbolic constant?  All regular vector and matrix
operations like Dot and Cross should still work, e.g. given above
definition,

	v.v

should yield something like

	Sum[i^2, {i, 1, n}]  or  n/6 (n+1)(2n+1).

A related problem I'm currently facing: Is there a way to make
Mathematica differentiate with respect to indexed variables?  For
example,

	D[Sum[x[i]^2, {i, 1, n}], x[j]]

should yield

	2 x[j]

rather than the actual output 0.

Any comments are highly appreciated.

Ralph


  • Prev by Date: Re: Can I solve PDE in Mathematica?
  • Next by Date: Re: running mathematica remotely
  • Previous by thread: Re: Can I solve PDE in Mathematica?
  • Next by thread: Re: Mathematica and MacOS X.