MathGroup Archive 2006

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

Search the Archive

Symbolic vectors possible?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65946] Symbolic vectors possible?
  • From: "Vladimir" <vladimir347 at yahoo.com>
  • Date: Mon, 24 Apr 2006 06:01:59 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Colleagues,

Is it possible to create functions in Mathematica
for manipulating expressions with symbolic vectors?
Just like we do on paper, without representing them with lists.
Something like the following for Dot and similar for Cross:

In[] := vectors = { v, u, w }; (* these symbols should be treated as
vectors *)

In[] := VectorExpand[(a v + b u) . w]
Out[] = a v.w + b u.w

In[] := VectorFactor[a v.w + b u.w]
Out[] = (a v + b u) . w

In[] := VectorSimplify[v.v + 2 v.u + u.u]
Out[] = (v + u) . (v + u)

To get the above results, simple replacement rules would suffice,
but the real challenge is to make it work for any expression.
Do you have any ideas?

--
Vladimir


  • Prev by Date: Width of plots
  • Next by Date: Re: page x of y
  • Previous by thread: Re: Width of plots
  • Next by thread: Re: Symbolic vectors possible?