Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5167 > unrolled thread

Arbitrary vector

Started byJames Womack <james.c.womack@gmail.com>
First post2011-09-23 07:42 +0000
Last post2011-09-26 08:19 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Arbitrary vector James Womack <james.c.womack@gmail.com> - 2011-09-23 07:42 +0000
    Re: Arbitrary vector Simon <simonjtyler@gmail.com> - 2011-09-26 08:19 +0000

#5167 — Arbitrary vector

FromJames Womack <james.c.womack@gmail.com>
Date2011-09-23 07:42 +0000
SubjectArbitrary vector
Message-ID<j5hd9m$7fq$1@smc.vnet.net>
Hello,

Does anyone know if it is possible to define an arbitrary vector in 
Mathematica? What I mean by this, is can I tell Mathematica that a 
particular variable is a vector, without having to define the components 
of this vector?

I'd like to be able to manipulate vectors with an arbitrary number of 
components, but am not sure if this is possible in Mathematica.

Many thanks,
James

[toc] | [next] | [standalone]


#5220

FromSimon <simonjtyler@gmail.com>
Date2011-09-26 08:19 +0000
Message-ID<j5pcj5$8hf$1@smc.vnet.net>
In reply to#5167
It's not built into Mathematica. But it is possible to define the rules that you need for your calculation  - either in terms of symbolic matrices or some symbolic index notation.

I don't know of any good implementation of symbolic matrices - but here's an ugly one of mine: http://stackoverflow.com/q/5708208/421225
It needs a lot of work (I've got a half-rewritten copy of it on my machine using optional values instead of options that makes it a little tidier), but you get the idea.

As for index notation, there is xAct (http://xact.es/) which is mainly focused on general relativity - but you can define a flat R^n space...

There are definitely other implementations of symbolic (indexed and non-indexed) matrices, but I can't remember where or how good they are.

Simon

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web