UnitVector Command
From GeoGebra Manual
- UnitVector[Vector]
- Yields a vector with length 1, which has the same direction and orientation as the given vector.
- Example:
UnitVector[{2, 4, 4}]
returns {\frac{1}{3}, \frac{2}{3}, \frac{2}{3}}.
- UnitVector[Line]
- Yields the direction vector of the given line, with length 1 .
- 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}]
returns {\frac{a}{\sqrt{a²+b²}},\frac{b}{\sqrt{a²+b²}}}.