Difference between revisions of "Cross Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}</noinclude>{{betamanual|version=4.2}} | <noinclude>{{Manual Page|version=4.0}}</noinclude>{{betamanual|version=4.2}} | ||
− | |||
;Cross[ <Vector u> , <Vector v> ] | ;Cross[ <Vector u> , <Vector v> ] | ||
:Calculates the [[w:Cross_product|cross product]] of ''u'' and ''v''. | :Calculates the [[w:Cross_product|cross product]] of ''u'' and ''v''. | ||
:{{example| 1=<div><code><nowiki>Cross[{1, 3, 2}, {0, 3, -2}]</nowiki></code> yields ''{-12, 2, 3}''.</div>}} | :{{example| 1=<div><code><nowiki>Cross[{1, 3, 2}, {0, 3, -2}]</nowiki></code> yields ''{-12, 2, 3}''.</div>}} | ||
− | |||
− | |||
{{note| 1=<div> | {{note| 1=<div> | ||
− | * In the [[Input Bar]] you can use <code>u ⊗ v</code>. | + | * In the [[Input Bar]] you can also use <code><nowiki>u ⊗ v</nowiki></code>. |
* See also [[Dot Command]]. | * See also [[Dot Command]]. | ||
</div>}} | </div>}} | ||
+ | ==CAS Syntax== | ||
+ | ;Cross[ <Vector u> , <Vector v> ] | ||
+ | :Calculates the [[w:Cross_product|cross product]] of ''u'' and ''v''. | ||
+ | :{{example| 1=<div><code><nowiki>Cross[{1, 3, 2}, {0, 3, -2}]</nowiki></code> yields ''{-12, 2, 3}''.</div>}} | ||
+ | :If a vector contains undefined variables, it yields a formula for the cross product. | ||
+ | :{{example|1=<div><code><nowiki>Cross[{a, b, c}, {d, e, f}]</nowiki></code> yields ''{b f - c e, -a f + c d, a e - b d}''.</div>}} | ||
+ | {{note| 1=<div>See also [[Dot Command]].</div>}} |
Revision as of 10:41, 19 September 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
- Cross[ <Vector u> , <Vector v> ]
- Calculates the cross product of u and v.
- Example:
Cross[{1, 3, 2}, {0, 3, -2}]
yields {-12, 2, 3}.
Note:
- In the Input Bar you can also use
u ⊗ v
. - See also Dot Command.
CAS Syntax
- Cross[ <Vector u> , <Vector v> ]
- Calculates the cross product of u and v.
- Example:
Cross[{1, 3, 2}, {0, 3, -2}]
yields {-12, 2, 3}.
- If a vector contains undefined variables, it yields a formula for the cross product.
- Example:
Cross[{a, b, c}, {d, e, f}]
yields {b f - c e, -a f + c d, a e - b d}.
Note:
See also Dot Command.