MathGroup Archive 2005

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

Search the Archive

Re: Cross results?


Virgil,

Because Mathematica is doing approximate number arithmatic it isn't certain
that the result is exactly zero - although in this case it is.

Either use Chop or exact calculations.

Cross[{10 Sin[x], -10 Cos[x], 2.5}, {0.12 Sin[x], -0.12 Cos[x], 0.0}] //
Chop
{0.3 Cos[x], 0.3 Sin[x], 0}

Cross[{10 Sin[x], -10 Cos[x], 5/2}, {12/100 Sin[x], -12/100 Cos[x], 0}]
{(3*Cos[x])/10, (3*Sin[x])/10, 0}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/




From: Virgil Stokes [mailto:virgil.stokes at it.uu.se]
To: mathgroup at smc.vnet.net


I have the following

  x=.
  Cross[{10 Sin[x],-10 Cos[x],2.5},{0.12 Sin[x],-0.12 Cos[x], 0.0}]

which gives,

  {0.3 Cos[x], 0.3 Sin[x], 0.Cos[x]Sin[x]}

why does it not set the last term to 0.0?



  • Prev by Date: Re: Cross results?
  • Next by Date: Imposing boundary condition at infinity
  • Previous by thread: Re: Cross results?
  • Next by thread: Re: Cross results?