Difference between revisions of "Direction Command"

From GeoGebra Manual
Jump to: navigation, search
(added example)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|geometry}}
 
{{command|geometry}}
; Direction[Line]: Yields the direction vector of the line.
+
; Direction[ <Line> ]: Yields the direction vector of the line.
 
:{{Example|1=<code>Direction[-2x + 3y + 1 = 0]</code> yields the vector  <math>u= \begin{pmatrix} 3 \\ 2 \end{pmatrix} </math>}}
 
:{{Example|1=<code>Direction[-2x + 3y + 1 = 0]</code> yields the vector  <math>u= \begin{pmatrix} 3 \\ 2 \end{pmatrix} </math>}}
: {{Note|1=A line with equation ''ax + by = c'' has the direction vector ''(b, - a)''.}}
+
:{{Note|1=A line with equation ''ax + by = c'' has the direction vector ''(b, - a)''.}}

Revision as of 14:28, 11 July 2013



Direction[ <Line> ]
Yields the direction vector of the line.
Example: Direction[-2x + 3y + 1 = 0] yields the vector u= \begin{pmatrix} 3 \\ 2 \end{pmatrix}
Note: A line with equation ax + by = c has the direction vector (b, - a).
© 2024 International GeoGebra Institute