Difference between revisions of "Vector Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|vector-matrix}}
 
{{command|vector-matrix}}
; Vector[Point A, Point B]: Creates a vector from point ''A'' to point ''B''.  
+
; Vector[ <Start Point>, <End Point> ]
; Vector[Point]: Returns the position vector of the given point.
+
: Creates a vector from ''Start Point'' to ''End Point''.
 
+
:{{example|1=<div><code><nowiki>Vector[(1, 1), (3, 4)]</nowiki></code> yields ''u = <math>\begin{pmatrix}2\\3\end{pmatrix}</math>''.</div>}}
 +
; Vector[ <Point> ]
 +
: Returns the position vector of the given point.
 +
:{{example|1=<div><code><nowiki>Vector[(3, 2)]</nowiki></code> yields ''u = <math>\begin{pmatrix}3\\2\end{pmatrix}</math>''.</div>}}
 
{{Note| See also [[Image:Tool Vector between Two Points.gif]] [[Vector between Two Points Tool|Vector between Two Points]] tool.}}
 
{{Note| See also [[Image:Tool Vector between Two Points.gif]] [[Vector between Two Points Tool|Vector between Two Points]] tool.}}
 
{{betamanual|version=5.0|
 
{{betamanual|version=5.0|
 
{{Note|1=From GeoGebra 5, this command will work with 3D Points as well}}
 
{{Note|1=From GeoGebra 5, this command will work with 3D Points as well}}
 
}}
 
}}

Revision as of 14:08, 31 July 2013



Vector[ <Start Point>, <End Point> ]
Creates a vector from Start Point to End Point.
Example:
Vector[(1, 1), (3, 4)] yields u = \begin{pmatrix}2\\3\end{pmatrix}.
Vector[ <Point> ]
Returns the position vector of the given point.
Example:
Vector[(3, 2)] yields u = \begin{pmatrix}3\\2\end{pmatrix}.
Note: See also Tool Vector between Two Points.gif Vector between Two Points tool.
© 2021 International GeoGebra Institute