MathGroup Archive 2003

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

Search the Archive

Re: Simplification of vector and scalar products


Hi,

> I want to simplify vector and scalar products as for instance
> 
>        6 (a / 2) x b  //Simplify
> 
> where a and b are assumed to be vectors and "x" is the vector product..
> Simplify and FullSimplify do nothing, nor does the following command
> change anything:
> 
>        6 (a / 2) x b  /. p_ Cross[a_ / q_ , b_] => p Cross[a, b] / q

This does nothing because Mathematica store a/2 as Rational[1,2]*a
while a/q would be a*q^(-1) and the pattern with a_/q_ can't match,
but

6*Cross[a/2, b] /. Cross[a_.*q_, p_] /; NumericQ[a] :> a*Cross[q, p] 

work as expected.

> 
Regards
  Jens


  • Prev by Date: stats
  • Next by Date: Re: Cursors in graphics
  • Previous by thread: Simplification of vector and scalar products
  • Next by thread: RE: Simplification of vector and scalar products