UnitVector Command

From GeoGebra Manual
Revision as of 10:15, 29 July 2011 by UnTom (talk | contribs)
Jump to: navigation, search


UnitVector[Line]
Yields the direction vector of the given line, with length 1 .
UnitVector[Vector]
Yields a vector with length 1, which has the same direction and orientation as the given vector.
UnitVector[Segment]
Yields the direction vector of the given segment, with length 1

CAS Specific 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[{2, 4, 4}] returns {1/3, 2/3, 2/3}.
© 2024 International GeoGebra Institute