Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5171 > unrolled thread
| Started by | Jacopo Bertolotti <jacopo.bertolotti@gmail.com> |
|---|---|
| First post | 2011-09-25 02:31 +0000 |
| Last post | 2011-09-25 02:31 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Arbitrary vector Jacopo Bertolotti <jacopo.bertolotti@gmail.com> - 2011-09-25 02:31 +0000
| From | Jacopo Bertolotti <jacopo.bertolotti@gmail.com> |
|---|---|
| Date | 2011-09-25 02:31 +0000 |
| Subject | Re: Arbitrary vector |
| Message-ID | <j5m3qb$per$1@smc.vnet.net> |
Hi, I have the feeling that your question is ill posed. A vector is (by definition) an element of a vector space and a vector space is just a set where certain properties are defined/respected (e.g. a commutative addition between the elements is defined etc.). Some vectors can be represented as a list of numbers (e.g. velocity) and some can not (e.g. square integrable functions). If all you are interested in are those vectors that can be represented as lists of numbers and you are happy with the canonical operations (scalar product, multiplication by a matrix, outer product etc.) then the problem is non-existent since Mathematica do it automatically. To be more clear: a.b is interpreted as the scalar product between the two vectors/matrices/tensors a and b irrespectively from their number of elements. If the operation is impossible (say a has three components and b 4) you will get an error but nothing more. Of course do not expect any smart simplification or algebraic trick from Mathematica unless you impose some assumptions. Jacopo p.s. If I misunderstood your question could you just try to reformulate it? On 09/23/2011 09:42 AM, James Womack wrote: > 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 > >
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web