Difference between revisions of "Cross Command"
From GeoGebra Manual
m |
m (changed CAS syntax description) |
||
Line 4: | Line 4: | ||
:{{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=In the [[Input Bar]] you can also use <code><nowiki>u ⊗ v</nowiki></code>.}} | :{{note| 1=In the [[Input Bar]] you can also use <code><nowiki>u ⊗ v</nowiki></code>.}} | ||
− | + | {{hint|1= | |
− | + | If a vector in the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] contains undefined variables, the command 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>}} | :{{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>}} | {{note| 1=<div>See also [[Dot Command]].</div>}} |
Revision as of 16:06, 26 August 2015
- 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
.
Hint: If a vector in the CAS View contains undefined variables, the command 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.