CASTI-89 TITANIUM · CALC89
unitV(
Returns the unit vector in the direction of a vector, the vector divided by its length.
Syntax
unitV(expr)
- Group
- Matrix
- Arguments
- Takes one row or column vector.
- Availability
- Included
- Menu path
- MATH ▸ Matrix ▸ CAS ▸ unitV(
Example
| Input | Result |
|---|---|
| unitV([3,4]) | [[3/5,4/5]] |
Typing unitV([3,4]) on the home screen and pressing ENTER returns [[3/5,4/5]].
Keystrokes on the TI-89 Titanium
2NDMATH4▶×3▼×15ENTER
The same key sequence inserts unitV( in Calc89, and the AI tutor shows it step by step on the on-screen keypad.
Related commands
- .*Multiplies two matrices element by element, unlike the normal matrix product.
- .+Adds element by element: each entry of the first matrix is added to the matching entry of the second, or to a single value.
- .-Subtracts element by element: the matching entry of the second matrix, or a single value, is subtracted from each entry.
- ./Divides element by element: each entry is divided by the matching entry of the second matrix, or by a single value.
- .^Raises each entry of a matrix to a power element by element, instead of computing a matrix power.
- augment(Joins two matrices side by side, appending the columns of the second to the first.
- charPoly(Returns the characteristic polynomial of a square matrix in the given variable.
- colAugment(Stacks two matrices vertically, appending the rows of the second below the first.