Path: news.mathworks.com!not-for-mail
From: "Thomas Pieper" <tom.pieper.nospam@t-online.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: cross product and mat lab
Date: Wed, 6 Feb 2008 15:20:04 +0000 (UTC)
Organization: Dr Pieper Softwareentwicklung
Lines: 27
Message-ID: <focj74$lge$1@fred.mathworks.com>
References: <focbdu$hvp$1@fred.mathworks.com>
Reply-To: "Thomas Pieper" <tom.pieper.nospam@t-online.de>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202311204 22030 172.30.248.35 (6 Feb 2008 15:20:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 6 Feb 2008 15:20:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 5140
Xref: news.mathworks.com comp.soft-sys.matlab:449645


"Rufus Worrell" <hollywoodbatez@AOL.com> wrote in message 
<focbdu$hvp$1@fred.mathworks.com>...
> Hey guys I was wondering I have 3 vectors: a, b, c.  now
> finding the cross product of them on paper is straight
> forward but how would mat lab do a x b .c and a.b x c if 
a =
> (1,2,3), b = (4,5,6) and c = (7,8,9)
> 
> Thanks!

Hi,

dot(cross(a,b),c)

and

dot(a,cross(b,c))


should solve your homework. The result lies between -0.001 
and +0.001 :-)


Cheers,

Thomas