Difference between revisions of "UnitPerpendicularVector Command"
From GeoGebra Manual
m |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude> |
{{command|cas=true|vector-matrix}} | {{command|cas=true|vector-matrix}} | ||
;UnitPerpendicularVector[ <Line>] | ;UnitPerpendicularVector[ <Line>] | ||
Line 13: | Line 13: | ||
;UnitPerpendicularVector[ <Vector> ] | ;UnitPerpendicularVector[ <Vector> ] | ||
:Yields a perpendicular vector with length 1 of the given vector. | :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 | + | :{{example|1=<div><code><nowiki>UnitPerpendicularVector[(a, b)]</nowiki></code> yields (<math>\frac{-b}{\sqrt{a a + b b}}</math>, <math>\frac{a}{\sqrt{a a + b b}}</math>).</div>}} |
{{betamanual|version=5.0|;UnitPerpendicularVector[ <Plane> ] | {{betamanual|version=5.0|;UnitPerpendicularVector[ <Plane> ] |
Revision as of 10:29, 28 July 2015
- 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.
- Example:Let
s = Segment[(1,1), (4,5)]
.UnitPerpendicularVector[s]
yields \begin{pmatrix}-0.8\\0.6\end{pmatrix}.
- UnitPerpendicularVector[ <Vector> ]
- Returns the perpendicular vector with length 1 of the given vector. The vector must be defined 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 a + b b}}, \frac{a}{\sqrt{a a + b b}}).
Following text is about a feature that is supported only in GeoGebra 5.0.
|
Note:
See also PerpendicularVector Command.