Difference between revisions of "Cross Command"
From GeoGebra Manual
Line 4: | Line 4: | ||
:Calculates the cross product of ''u'' and ''v''. | :Calculates the cross product of ''u'' and ''v''. | ||
:For vectors ''u=(a,b)'' and ''v=(c,d)'' returns ''ad-bc'' (i.e. the z-coordinate of vector product of ''(a,b,0), (c,d,0)''). | :For vectors ''u=(a,b)'' and ''v=(c,d)'' returns ''ad-bc'' (i.e. the z-coordinate of vector product of ''(a,b,0), (c,d,0)''). | ||
− | + | :{{example| 1=<div><code><nowiki>Cross[{1, 3, 2}, {0, 3, -2}]</nowiki></code> gives ''{-12, 2, 3}'', the cross product of ''{1, 2, 3}'' and ''{0, 3, -2}''.</div>}} | |
− | {{ | + | {{note| 1=<div> |
+ | *In the [[Input Bar]] you can also use <code>u⊗v</code>. | ||
+ | *See also [[Dot Command]]. | ||
+ | </div>}} |
Revision as of 09:22, 5 August 2011
This command works in CAS View only.
- Cross[ <Vector u> , <Vector v> ]
- Calculates the cross product of u and v.
- For vectors u=(a,b) and v=(c,d) returns ad-bc (i.e. the z-coordinate of vector product of (a,b,0), (c,d,0)).
- Example:
Cross[{1, 3, 2}, {0, 3, -2}]
gives {-12, 2, 3}, the cross product of {1, 2, 3} and {0, 3, -2}.
Note:
- In the Input Bar you can also use
u⊗v
. - See also Dot Command.