MathGroup Archive 1989

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

Search the Archive

bug in cross product

  • To: mathgroup
  • Subject: bug in cross product
  • From: mrk at athena.Princeton.EDU
  • Date: Fri, 24 Mar 89 15:53:33 CST

There is a bug in the Mathematica Package CrossProduct.m. Following is a sample
session illustrating the problem:

In[1]:= <<CrossProduct.m

In[2]:= Cross[a,b]^2

              2
Out[2]= -a . b  + a . a b . b

Note that this is incorrect (in the first term the a should be squared).
If you do the following the answer comes out correct:

In[3]:= Cross[a,b] . Cross[a,b]

Out[3]= -a . (b a . b) + a . (a b . b)

Mark Dragovan
Physics Dept, Princeton University
mrk at athena.princeton.edu





  • Prev by Date: Need help Solv[]ing equations
  • Next by Date: Some questions on Mac II version 1.1
  • Previous by thread: Need help Solv[]ing equations
  • Next by thread: Some questions on Mac II version 1.1