Difference between revisions of "Cross Command"

From GeoGebra Manual
Jump to: navigation, search
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>.}}
==CAS Syntax==
+
{{hint|1=
;Cross[ <Vector u> , <Vector v> ]
+
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.
: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>}}
 
:{{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.
Note Hint: If a vector in the Menu view cas.svg 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.
© 2024 International GeoGebra Institute