Difference between revisions of "UnitVector Command"
From GeoGebra Manual
(added v.4 - added description UnitVector[segment]) |
|||
Line 4: | Line 4: | ||
; UnitVector[Vector]: Yields a vector with length 1, which has the same direction and orientation as the given vector. | ; 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 | ; 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|1= | ||
+ | :* <code>UnitVector[{2, 4, 4}]</code> returns ''{1/3, 2/3, 2/3}''.}} |
Revision as of 10:15, 29 July 2011
- 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}.