Vcross()

From TinyMUX
Revision as of 17:32, 25 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions {{Function|vcross(<vector>,<vector>[,<delim>][,<output delim>])}} Returns the cross product of two vectors. The cross product of two vectors is a vector. ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


vcross(<vector>,<vector>[,<delim>][,<output delim>])

Returns the cross product of two vectors. The cross product of two vectors is a vector.

                         | a b c |
 (a,b,c) X (d,e,f) = det | d e f | = i(bf-ce) + j(cd-af) + k(ae-bd)
                         | i j k |
 where i, j, and k are taken as unit vectors in Cartesian space.

Example

> @pemit me=vcross(1 2 3,2 3 4)

-1 2 -1

Related Topics

vdot(), vmul()