Difference between revisions of "UnitPerpendicularVector Command"

From GeoGebra Manual
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|vector-matrix}}
 
{{command|vector-matrix}}
; UnitPerpendicularVector[Line]: Returns the perpendicular vector with length 1 of the given line.  
+
;UnitPerpendicularVector[ <Line>]
: {{Example|1=<code>UnitPerpendicularVector[3x + 4y = 5]</code> returns ''<math>\begin{pmatrix}0.6\\0.8\end{pmatrix}</math>''.}}
+
:Returns the perpendicular vector with length 1 of the given line.  
; UnitPerpendicularVector[Segment]: Returns the perpendicular vector with length 1 of the given segment.  
+
:{{example|1=<div><code><nowiki>UnitPerpendicularVector[3x + 4y = 5]</nowiki></code> yields ''<math>\begin{pmatrix}0.6\\0.8\end{pmatrix}</math>''.</div>}}
; UnitPerpendicularVector[Vector]: Returns the perpendicular vector with length 1 of the given vector. The vector must be befined first.  
+
;UnitPerpendicularVector[ <Segment> ]
: {{Example|1=Let ''v=<math>\begin{pmatrix}3\\4\end{pmatrix}</math>. <code>UnitPerpendicularVector[v]</code> returns ''<math>\begin{pmatrix}-0.8\\0.6\end{pmatrix}</math>''.}}
+
: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|1=<div>Let ''v=<math>\begin{pmatrix}3\\4\end{pmatrix}</math>. <code><nowiki>UnitPerpendicularVector[v]</nowiki></code> yields ''<math>\begin{pmatrix}-0.8\\0.6\end{pmatrix}</math>''.</div>}}
 
==CAS Syntax==
 
==CAS Syntax==
 
In [[CAS View]] only one syntax is allowed:
 
In [[CAS View]] only one syntax is allowed:
; UnitPerpendicularVector[Vector]: Yields a perpendicular vector with length 1 of the given vector.
+
;UnitPerpendicularVector[ <Vector> ]
: {{Example|1=<code>UnitPerpendicularVector[{a,b}]</code> returns ''{<math>\frac{-b}{\sqrt{a²+b²&#125;}</math>,<math>\frac{a}{\sqrt{a²+b²&#125;}</math>}''.}}
+
:Yields a perpendicular vector with length 1 of the given vector.
 +
:{{example|1=<div><code><nowiki>UnitPerpendicularVector[{a, b}]</nowiki></code> yields ''{<math>\frac{-b}{\sqrt{a²+b²&#125;}</math>, <math>\frac{a}{\sqrt{a²+b²&#125;}</math>}''.</div>}}

Revision as of 10:50, 6 September 2011


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

In CAS View only one syntax is allowed:

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