UnitVector Command
From GeoGebra Manual
Revision as of 13:04, 6 September 2011 by Alexander Hartl (talk | contribs)
- UnitVector[ <Vector> ]
- Yields a vector with length 1, which has the same direction and orientation as the given vector. The vector must be defined first.
- Example:Let v=\begin{pmatrix}3\\4\end{pmatrix}.
UnitVector[v]
http://www.geogebra.org/ggb.xsd\begin{pmatrix}0.6\\0.8\end{pmatrix}.
- UnitVector[ <Line> ]
- Yields the direction vector of the given line, with length 1 .
- Example:
- UnitVector[ <Segment> ]
- Yields the direction vector of the given segment, with length 1.
CAS Syntax
In CAS View only one syntax is allowed:
- UnitVector[ <Vector> ]
- Yields a vector with length 1, which has the same direction and orientation as the given vector.
- Example:
UnitVector[{a, b}]
yields {\frac{a}{\sqrt{a^{2} + b^{2}}}, \frac{b}{\sqrt{a^{2} + b^{2}}}}.
- Example: