login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for SandBox Lorentz Transformations revision 1 of 3

1 2 3
Editor:
Time: 2007/11/18 18:07:00 GMT-8
Note: scalar

changed:
-
Lorentz transformations relate one object or observer (represented by a
time-like 4-vector) to another object or observer. A Lorentz transformation
is **not** uniquely given by the relative velocity of these objects.

References

  Z. Oziewicz, 2005 -- "Special relativity without Lorentz group":http://portal.axiom-developer.org/Members/billpage/catrel/velocity.pdf/file_view

  Donald Fahnline, AJP, 1982 -- "A covariant four-dimensional expression for Lorentz transformations":http://link.aip.org/link/?AJP/50/818/1

  Daniel Gottlieb, 1996 -- "Skew Symmetric Bundle Maps on Space-Time":http://arxiv.org/abs/q-alg/9603024

Mathematical Preliminaries (from: SandBoxCategoricalRelativity)

This package implements a vector as a $n \times 1$ matrix (column vector),
a co-vector as a $1 \times n$ matrix (row vector), inner and outter
(tensor) products with Minkowski signature $- + + +$ and fast routines
for checking equations.

\begin{aldor}[mink1]

#include "axiom.as"
#pile

-- Try RealClosure instead of AlgebraicNumber in order to
-- avoid error message #305 ... but it takes too long.
RAN    ==> AlgebraicNumber
--RAN  ==> RealClosure( Fraction(Integer) )
EQ     ==> Equation
EXPR   ==> Expression
INT    ==> Integer
NNI    ==> NonNegativeInteger
SYMBOL ==> Symbol
LIST   ==> List
MATRIX ==> Matrix

SCALAR ==> Expression Integer

import from
  INT, NNI
  EXPR INT
  EXPR RAN
  EQ EXPR INT
  LIST EXPR INT
  LIST LIST SYMBOL
  ListFunctions2(SCALAR, LIST SCALAR)
  ListFunctions2(SYMBOL, EQ SCALAR)
  ListFunctions2(SYMBOL, EQ EXPR RAN)
  ListFunctions2(SCALAR, LIST SYMBOL)
  ListFunctions2(EXPR RAN, LIST SYMBOL)
  MATRIX SCALAR
  MATRIX EXPR RAN

minkowski1(): with
    +++   Colum vector
    vect:        LIST SCALAR             -> MATRIX SCALAR
      ++ is represented as a nx1 matrix (column vector)
    +++   The Lorentz form 
    g: ()                                -> MATRIX SCALAR
    g:           MATRIX SCALAR           -> MATRIX SCALAR
      ++   applied to vector produces a row vector
    g: (MATRIX SCALAR,MATRIX SCALAR)     -> SCALAR
      ++   as inner product of two vectors produces a scalar
    +++ replace symbols by random numerical values.
    possible:    SCALAR                  -> SCALAR
    possible:    EXPR RAN                -> EXPR RAN
    possible:    MATRIX SCALAR           -> MATRIX SCALAR
    possible:    EQ SCALAR               -> EQ SCALAR
    possible:    EQ MATRIX SCALAR        -> EQ MATRIX SCALAR
    +++ verify equality
    Is?:         EQ SCALAR               -> Boolean
    Is?:         EQ EXPR RAN             -> Boolean
    Is?:         EQ MATRIX EXPR RAN      -> Boolean
    +++ Massive Objects
    obs:         ()                      -> MATRIX SCALAR
    obs?:        MATRIX SCALAR           -> Boolean
    +++   Relative Velocity
    w: (MATRIX SCALAR,MATRIX SCALAR)     -> MATRIX SCALAR
    +++ outter (tensor) product
    /\: (MATRIX SCALAR,MATRIX SCALAR)    ->MATRIX SCALAR
    +++ Lorentz factor
    gamma:       MATRIX SCALAR           -> SCALAR
    +++ binary boost
    b: (MATRIX SCALAR,MATRIX SCALAR)     ->MATRIX SCALAR
    +++ addition of relative velocities
    addition: (MATRIX SCALAR,MATRIX SCALAR,MATRIX SCALAR) -> MATRIX SCALAR
  == add
    --
    -- Local functions
    randumb(y:SYMBOL):EQ SCALAR ==
      coerce(y)$SCALAR = coerce(random(100) - random(100))$SCALAR
    randumb(y:SYMBOL):EQ EXPR RAN ==
      coerce(y)$EXPR(RAN) =  coerce(random(100) - random(100))$EXPR(RAN)
    --
    -- get list of unique variables
    varList(x:MATRIX SCALAR):LIST Symbol ==
      removeDuplicates(reduce(append,map(variables,members(x))))
    varList(x:EQ MATRIX SCALAR):LIST Symbol ==
      removeDuplicates(reduce(append,
         append(map(variables,members(lhs x)),map(variables,members(rhs x)))
      ))
    varList(x:EQ SCALAR):LIST Symbol ==
      removeDuplicates(append(variables lhs x,variables rhs x))
    --
    -- Exported functions
    vect(x:LIST SCALAR):MATRIX SCALAR == matrix( map(list,x) )
    g():MATRIX SCALAR ==
      diagonalMatrix([-1,1,1,1])$MATRIX(SCALAR)
    g(x:Matrix SCALAR):MATRIX SCALAR ==
      transpose(x)*g()
    g(x:MATRIX SCALAR,y:MATRIX SCALAR):SCALAR ==
     (g(x)*y).(1,1)
    --
    --   For difficult verifications it is sometimes convenient to replace
    --   symbols by random numerical values.
    possible(x:SCALAR):SCALAR ==
      eval(x, map(randumb,variables x))
    possible(x:EXPR RAN):EXPR RAN ==
      eval(x, map(randumb,variables x))
    possible(x:MATRIX SCALAR):MATRIX SCALAR ==
      eval(x, map(randumb,varList x))
    --
    -- We must be careful to give each variable the same value
    possible(x:EQ MATRIX SCALAR):EQ MATRIX SCALAR ==
      rlist:LIST EQ SCALAR := map(randumb,varList x)
      eval(lhs x, rlist) = eval(rhs x, rlist)
    possible(x:EQ SCALAR):EQ SCALAR ==
      rlist:List EQ SCALAR := map(randumb,varList x)
      eval(lhs x, rlist) = eval(rhs x, rlist)
    --
    --   To verify equality, the AlgebraicNumber domain can test for
    --   equality of complicated expressions involving $\sqrt{n}$.
    Is?(eq:EQ SCALAR):Boolean ==
      zero?(lhs(eq)-rhs(eq))
    Is?(eq:EQ EXPR RAN):Boolean ==
      zero?(lhs(eq)-rhs(eq))
    Is?(eq:EQ Matrix EXPR RAN):Boolean ==
      every?(zero?,lhs(eq)-rhs(eq))
    --
    -- Fast check: If the result of Is?(possible(...)) is false then the
    --   equality does not hold on the other hand if it returns true, then
    --   it is only probably true.
    obs():MATRIX SCALAR ==
      p1:=new()$SYMBOL::SCALAR;
      p2:=new()$SYMBOL::SCALAR;
      p3:=new()$SYMBOL::SCALAR;
      vect [sqrt(p1^2::NNI+p2^2::NNI+p3^2::NNI+1),p1,p2,p3]
    obs?(P:MATRIX SCALAR):Boolean ==
      Is?( (g(P,P) = -1$SCALAR)$EQ(SCALAR) )
    w(P:MATRIX SCALAR,Q:MATRIX SCALAR):MATRIX SCALAR ==
      -Q/g(P,Q)-P
    (/\)(P:MATRIX SCALAR,K:MATRIX SCALAR):MATRIX SCALAR ==
       P*transpose(K) - K*transpose(P)
    gamma(v:MATRIX SCALAR):SCALAR ==
       1/sqrt(1-g(v,v))
    b(P:MATRIX SCALAR,v:MATRIX SCALAR):MATRIX SCALAR ==
      gamma(v)*(P+v)
    addition(v:MATRIX SCALAR,u:MATRIX SCALAR,uinv:MATRIX SCALAR):MATRIX SCALAR ==
      ( u + v/gamma(u) - g(v,uinv)/g(u,u)*(u + uinv/gamma(u)) ) / (1-g(v,uinv))
        ++ for u=w(A,B), uinv=w(B,A) and v=w(B,C) returns w(A,C) 
\end{aldor}

\begin{axiom}
)lib mink1
)show minkowski1
\end{axiom}

Objects
\begin{axiom}
P:=obs(); Q:=obs();
R:=obs(); S:=obs();
\end{axiom}

Lorentz boost (Oziewicz)

  M is a g-skew-symmetric endomorphism on the vector space
\begin{axiom}
M(P,Q) == P*g(Q) - Q*g(P)
Is?(M(vect [a1,a2,a3,a4], vect [b1,b2,b3,b4]) = _
   (vect [a1,a2,a3,a4] /\ vect [b1,b2,b3,b4])*g())
\end{axiom}

The Lorentz transformation is an isometry (Oziewicz):
\begin{axiom}
L(b) == 1 + b + b^2/(1+sqrt(1+1/2*trace(b^2)))
\end{axiom}

It maps P into Q,
\begin{axiom}
Is?(possible( L(M(P,Q)) * P = Q ))
\end{axiom}
maps observers into observers $R \rightarrow S$
\begin{axiom}
S := L(M(P,Q)) * R;
obs?(possible(S))
\end{axiom}
and the relative velocity of w(P,Q) into minus the
inverse velocity w(Q,P)
\begin{axiom}
u:=w(P,Q);
u':=w(Q,P);
Is?(possible( L(M(P,Q)) * u = -u' ))
\end{axiom}

This Lorentz boost can be applied to other objects, for
example we can apply the boost L(M(P,Q)) to the object R to
obtain S. But in general the relative velocity w(P,Q) is not
the same as the relative velocity w(R,S)! Further since u and
v belong to separate sub-spaces, $E_P$ and $E_R$ respectively,
we can not even directly compare their directions.
\begin{axiom}
v:=w(R,S);
p:=possible(u=v); Is?(p)
up:=lhs(p); vp:=rhs(p);
Is?( g(up,up) = g(vp,vp) )
( g(up,up) = g(vp,vp) )::EQ EXPR Float
\end{axiom}
The next command fails due to bug #305
\begin{axiom}
Is?(possible( g(u,u) = g(v,v) ))
\end{axiom}


Lorentz transformations relate one object or observer (represented by a time-like 4-vector) to another object or observer. A Lorentz transformation is not uniquely given by the relative velocity of these objects.

References

Z. Oziewicz, 2005
Special relativity without Lorentz group
Donald Fahnline, AJP, 1982
A covariant four-dimensional expression for Lorentz transformations
Daniel Gottlieb, 1996
Skew Symmetric Bundle Maps on Space-Time

Mathematical Preliminaries (from: SandBoxCategoricalRelativity?)

This package implements a vector as a LatexWiki Image matrix (column vector), a co-vector as a LatexWiki Image matrix (row vector), inner and outter (tensor) products with Minkowski signature LatexWiki Image and fast routines for checking equations.

aldor
#include "axiom.as"
#pile
-- Try RealClosure instead of AlgebraicNumber in order to -- avoid error message #305 ... but it takes too long. RAN ==> AlgebraicNumber --RAN ==> RealClosure( Fraction(Integer) ) EQ ==> Equation EXPR ==> Expression INT ==> Integer NNI ==> NonNegativeInteger SYMBOL ==> Symbol LIST ==> List MATRIX ==> Matrix
SCALAR ==> Expression Integer
import from INT, NNI EXPR INT EXPR RAN EQ EXPR INT LIST EXPR INT LIST LIST SYMBOL ListFunctions2(SCALAR, LIST SCALAR) ListFunctions2(SYMBOL, EQ SCALAR) ListFunctions2(SYMBOL, EQ EXPR RAN) ListFunctions2(SCALAR, LIST SYMBOL) ListFunctions2(EXPR RAN, LIST SYMBOL) MATRIX SCALAR MATRIX EXPR RAN
minkowski1(): with +++ Colum vector vect: LIST SCALAR -> MATRIX SCALAR ++ is represented as a nx1 matrix (column vector) +++ The Lorentz form g: () -> MATRIX SCALAR g: MATRIX SCALAR -> MATRIX SCALAR ++ applied to vector produces a row vector g: (MATRIX SCALAR,MATRIX SCALAR) -> SCALAR ++ as inner product of two vectors produces a scalar +++ replace symbols by random numerical values. possible: SCALAR -> SCALAR possible: EXPR RAN -> EXPR RAN possible: MATRIX SCALAR -> MATRIX SCALAR possible: EQ SCALAR -> EQ SCALAR possible: EQ MATRIX SCALAR -> EQ MATRIX SCALAR +++ verify equality Is?: EQ SCALAR -> Boolean Is?: EQ EXPR RAN -> Boolean Is?: EQ MATRIX EXPR RAN -> Boolean +++ Massive Objects obs: () -> MATRIX SCALAR obs?: MATRIX SCALAR -> Boolean +++ Relative Velocity w: (MATRIX SCALAR,MATRIX SCALAR) -> MATRIX SCALAR +++ outter (tensor) product /\: (MATRIX SCALAR,MATRIX SCALAR) ->MATRIX SCALAR +++ Lorentz factor gamma: MATRIX SCALAR -> SCALAR +++ binary boost b: (MATRIX SCALAR,MATRIX SCALAR) ->MATRIX SCALAR +++ addition of relative velocities addition: (MATRIX SCALAR,MATRIX SCALAR,MATRIX SCALAR) -> MATRIX SCALAR == add -- -- Local functions randumb(y:SYMBOL):EQ SCALAR == coerce(y)$SCALAR = coerce(random(100) - random(100))$SCALAR randumb(y:SYMBOL):EQ EXPR RAN == coerce(y)$EXPR(RAN) = coerce(random(100) - random(100))$EXPR(RAN) -- -- get list of unique variables varList(x:MATRIX SCALAR):LIST Symbol == removeDuplicates(reduce(append,map(variables,members(x)))) varList(x:EQ MATRIX SCALAR):LIST Symbol == removeDuplicates(reduce(append, append(map(variables,members(lhs x)),map(variables,members(rhs x))) )) varList(x:EQ SCALAR):LIST Symbol == removeDuplicates(append(variables lhs x,variables rhs x)) -- -- Exported functions vect(x:LIST SCALAR):MATRIX SCALAR == matrix( map(list,x) ) g():MATRIX SCALAR == diagonalMatrix([-1,1,1,1])$MATRIX(SCALAR) g(x:Matrix SCALAR):MATRIX SCALAR == transpose(x)*g() g(x:MATRIX SCALAR,y:MATRIX SCALAR):SCALAR == (g(x)*y).(1,1) -- -- For difficult verifications it is sometimes convenient to replace -- symbols by random numerical values. possible(x:SCALAR):SCALAR == eval(x, map(randumb,variables x)) possible(x:EXPR RAN):EXPR RAN == eval(x, map(randumb,variables x)) possible(x:MATRIX SCALAR):MATRIX SCALAR == eval(x, map(randumb,varList x)) -- -- We must be careful to give each variable the same value possible(x:EQ MATRIX SCALAR):EQ MATRIX SCALAR == rlist:LIST EQ SCALAR := map(randumb,varList x) eval(lhs x, rlist) = eval(rhs x, rlist) possible(x:EQ SCALAR):EQ SCALAR == rlist:List EQ SCALAR := map(randumb,varList x) eval(lhs x, rlist) = eval(rhs x, rlist) -- -- To verify equality, the AlgebraicNumber domain can test for -- equality of complicated expressions involving $\sqrt{n}$. Is?(eq:EQ SCALAR):Boolean == zero?(lhs(eq)-rhs(eq)) Is?(eq:EQ EXPR RAN):Boolean == zero?(lhs(eq)-rhs(eq)) Is?(eq:EQ Matrix EXPR RAN):Boolean == every?(zero?,lhs(eq)-rhs(eq)) -- -- Fast check: If the result of Is?(possible(...)) is false then the -- equality does not hold on the other hand if it returns true, then -- it is only probably true. obs():MATRIX SCALAR == p1:=new()$SYMBOL::SCALAR; p2:=new()$SYMBOL::SCALAR; p3:=new()$SYMBOL::SCALAR; vect [sqrt(p1^2::NNI+p2^2::NNI+p3^2::NNI+1),p1,p2,p3] obs?(P:MATRIX SCALAR):Boolean == Is?( (g(P,P) = -1$SCALAR)$EQ(SCALAR) ) w(P:MATRIX SCALAR,Q:MATRIX SCALAR):MATRIX SCALAR == -Q/g(P,Q)-P (/\)(P:MATRIX SCALAR,K:MATRIX SCALAR):MATRIX SCALAR == P*transpose(K) - K*transpose(P) gamma(v:MATRIX SCALAR):SCALAR == 1/sqrt(1-g(v,v)) b(P:MATRIX SCALAR,v:MATRIX SCALAR):MATRIX SCALAR == gamma(v)*(P+v) addition(v:MATRIX SCALAR,u:MATRIX SCALAR,uinv:MATRIX SCALAR):MATRIX SCALAR == ( u + v/gamma(u) - g(v,uinv)/g(u,u)*(u + uinv/gamma(u)) ) / (1-g(v,uinv)) ++ for u=w(A,B), uinv=w(B,A) and v=w(B,C) returns w(A,C)
aldor
   Compiling FriCAS source code from file 
      /var/zope2/var/LatexWiki/mink1.as using AXIOM-XL compiler and 
      options 
-O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra
      Use the system command )set compiler args to change these 
      options.
   Compiling Lisp source code from file ./mink1.lsp
   Issuing )library command for mink1
   Reading /var/zope2/var/LatexWiki/mink1.asy
   minkowski1 is now explicitly exposed in frame initial 
   minkowski1 will be automatically loaded when needed from 
      /var/zope2/var/LatexWiki/mink1

axiom
)lib mink1
axiom
Reading /var/zope2/var/LatexWiki/mink1.asy
   minkowski1 is already explicitly exposed in frame initial 
   minkowski1 will be automatically loaded when needed from 
      /var/zope2/var/LatexWiki/mink1
axiom
)show minkowski1
minkowski1 is a domain constructor Abbreviation for minkowski1 is MINKOWS This constructor is exposed in this frame. ------------------------------- Operations -------------------------------- ?/\? : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer)) Is? : Equation(Expression(Integer)) -> Boolean Is? : Equation(Expression(AlgebraicNumber)) -> Boolean Is? : Equation(Matrix(Expression(AlgebraicNumber))) -> Boolean addition : (Matrix(Expression(Integer)),Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer)) b : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer)) g : () -> Matrix(Expression(Integer)) g : Matrix(Expression(Integer)) -> Matrix(Expression(Integer)) g : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Expression(Integer) gamma : Matrix(Expression(Integer)) -> Expression(Integer) obs : () -> Matrix(Expression(Integer)) obs? : Matrix(Expression(Integer)) -> Boolean possible : Expression(Integer) -> Expression(Integer) possible : Expression(AlgebraicNumber) -> Expression(AlgebraicNumber) possible : Matrix(Expression(Integer)) -> Matrix(Expression(Integer)) possible : Equation(Expression(Integer)) -> Equation(Expression(Integer)) possible : Equation(Matrix(Expression(Integer))) -> Equation(Matrix(Expression(Integer))) vect : List(Expression(Integer)) -> Matrix(Expression(Integer)) w : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer))

Objects

axiom
P:=obs(); Q:=obs();
Internal Error The function obs with signature hashcode is missing from domain UNPRINTABLE

Lorentz boost (Oziewicz)

M is a g-skew-symmetric endomorphism on the vector space

axiom
M(P,Q) == P*g(Q) - Q*g(P)
Type: Void
axiom
Is?(M(vect [a1,a2,a3,a4], vect [b1,b2,b3,b4]) = _
   (vect [a1,a2,a3,a4] /\ vect [b1,b2,b3,b4])*g())
Internal Error The function vect with signature hashcode is missing from domain UNPRINTABLE

The Lorentz transformation is an isometry (Oziewicz):

axiom
L(b) == 1 + b + b^2/(1+sqrt(1+1/2*trace(b^2)))
Type: Void

It maps P into Q,

axiom
Is?(possible( L(M(P,Q)) * P = Q ))
There are 1 exposed and 0 unexposed library operations named g having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op g to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named g with argument type(s) Variable(Q)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code. There are 1 exposed and 0 unexposed library operations named g having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op g to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named g with argument type(s) Variable(Q)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

maps observers into observers LatexWiki Image

axiom
S := L(M(P,Q)) * R;
There are 1 exposed and 0 unexposed library operations named g having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op g to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named g with argument type(s) Variable(Q)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code. There are 1 exposed and 0 unexposed library operations named g having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op g to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named g with argument type(s) Variable(Q)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. obs?(possible(S))
Internal Error The function possible with signature hashcode is missing from domain UNPRINTABLE

and the relative velocity of w(P,Q) into minus the inverse velocity w(Q,P)

axiom
u:=w(P,Q);
There are 1 exposed and 0 unexposed library operations named w having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op w to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named w with argument type(s) Variable(P) Variable(Q)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. u':=w(Q,P);
There are 1 exposed and 0 unexposed library operations named w having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op w to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named w with argument type(s) Variable(Q) Variable(P)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. Is?(possible( L(M(P,Q)) * u = -u' ))
There are 1 exposed and 0 unexposed library operations named g having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op g to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named g with argument type(s) Variable(Q)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code. There are 1 exposed and 0 unexposed library operations named g having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op g to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named g with argument type(s) Variable(Q)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

This Lorentz boost can be applied to other objects, for example we can apply the boost L(M(P,Q)) to the object R to obtain S. But in general the relative velocity w(P,Q) is not the same as the relative velocity w(R,S)! Further since u and v belong to separate sub-spaces, LatexWiki Image and LatexWiki Image respectively, we can not even directly compare their directions.

axiom
v:=w(R,S);
There are 1 exposed and 0 unexposed library operations named w having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op w to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named w with argument type(s) Variable(R) Variable(S)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. p:=possible(u=v); Is?(p)
Internal Error The function possible with signature hashcode is missing from domain UNPRINTABLE

The next command fails due to bug #305

axiom
Is?(possible( g(u,u) = g(v,v) ))
There are 1 exposed and 0 unexposed library operations named g having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op g to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named g with argument type(s) Variable(u) Variable(u)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.