Difference between revisions of "UnitPerpendicularVector 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.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|cas=true|vector-matrix}}
 
{{command|cas=true|vector-matrix}}
 
;UnitPerpendicularVector[ <Line>]
 
;UnitPerpendicularVector[ <Line>]

Revision as of 22:32, 9 March 2013



UnitPerpendicularVector[ <Line>]
Returns the perpendicular vector with length 1 of the given line.
Example:
UnitPerpendicularVector[3x + 4y = 5] yields \begin{pmatrix}0.6\\0.8\end{pmatrix}.
UnitPerpendicularVector[ <Segment> ]
Returns the perpendicular vector with length 1 of the given segment.
UnitPerpendicularVector[ <Vector> ]
Returns the perpendicular vector with length 1 of the given vector. The vector must be befined first.
Example:
Let v=\begin{pmatrix}3\\4\end{pmatrix}. UnitPerpendicularVector[v] yields \begin{pmatrix}-0.8\\0.6\end{pmatrix}.

CAS Syntax

UnitPerpendicularVector[ <Vector> ]
Yields a perpendicular vector with length 1 of the given vector.
Example:
UnitPerpendicularVector[(a, b)] yields {\frac{-b}{\sqrt{a^{2} + b^{2}}}, \frac{a}{\sqrt{a^{2} + b^{2}}}}.
© 2024 International GeoGebra Institute