Difference between revisions of "UnitPerpendicularVector Command"
From GeoGebra Manual
Line 11: | Line 11: | ||
; UnitPerpendicularVector[Vector]: Yields a perpendicular vector with length 1 of the given vector. | ; UnitPerpendicularVector[Vector]: Yields a perpendicular vector with length 1 of the given vector. | ||
: {{Example|1=<code>UnitPerpendicularVector[{a,b}]</code> returns ''{<math>\frac{-b}{\sqrt{a²+b²}}</math>,<math>\frac{a}{\sqrt{a²+b²}}</math>}''.}} | : {{Example|1=<code>UnitPerpendicularVector[{a,b}]</code> returns ''{<math>\frac{-b}{\sqrt{a²+b²}}</math>,<math>\frac{a}{\sqrt{a²+b²}}</math>}''.}} | ||
− |
Revision as of 11:20, 23 August 2011
- UnitPerpendicularVector[Line]
- Returns the perpendicular vector with length 1 of the given line.
- Example:
UnitPerpendicularVector[3x + 4y = 5]
returns \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]
returns \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}]
returns {\frac{-b}{\sqrt{a²+b²}},\frac{a}{\sqrt{a²+b²}}}.