MAMBO logo MAMBO & the MAMBO Toolbox MAMBO logo

MakeTranslations — Generating a Mambo vector [mathematica]

MakeTranslations[evs]

MakeTranslations[{evs1}, ..., {evsn}]

MakeTranslations[pv]

evs,evs1, ..., evsn: elementary vector specifications

pv: Mambo vector

The function MakeTranslations returns a Mambo vector as specified by its arguments.

An elementary vector specification comes in one of two forms, namely
a,i
where a is a declared triad and i equals 1, 2, or 3. This corresponds to the i-th basis vector in the a triad.
a,v1,v2,v3
where a is a declared triad and v1, v2, and v3 are algebraic expressions. This corresponds to the vector whose coordinates relative to the a triad equal v1, v2, and v3.
When invoked with multiple elementary vector specifications, the MakeTranslations procedure returns the vector sum of the individual vectors specified by each of the elementary vector specifications. The Size of the resulting vector equals the number of separate triads in the specifications for each of the individual vectors.

Restart;
DeclareTriads[a,b];
MakeTranslations[a,1]

{ Type "->" Vector , Size "->" 1 , 1 "->" { Coordinates "->" { 1 , 0 , 0 } , Triad "->" a } }

MakeTranslations[{a,2},{b,1,1,0}]

{ 1 "->" { Coordinates "->" { 0 , 1 , 0 } , Triad "->" a } , Type "->" Vector , Size "->" 2 , 2 "->" { Coordinates "->" { 1 , 1 , 0 } , Triad "->" b } }


Toolbox functions