- A vector is handled as a 1 \(\times\) N matrix or N \(\times\) 1 matrix.
- A vector in the form of 1 \(\times\) N can be entered as [……] or [[……]].
Example: [1, 2], [[1, 2]] - Vectors are considered to be in rectangular form unless ∠() is used to indicate an angle measure.
augment
Returns an augmented vector [Mat-1 Mat-2].
Syntax: augment (Mat-1, Mat-2 [ ) ]
fill
Creates a vector that contains a specific number of elements, or replaces the elements of a vector with a specific expression.
Syntax: fill (Exp, Mat [ ) ]
fill (Exp, 1, number of columns [ ) ]
dim
Returns the dimension of a vector.
Syntax: dim (Mat [ ) ]
unitV
Normalizes a vector.
Syntax: unitV (Mat [ ) ]
- This command can be used with a 1 \(\times\) N or N \(\times\) 1 matrix only.
angle
Returns the angle formed by two vectors.
Syntax: angle (Mat-1, Mat-2 [ ) ]
- This command can be used with a 1 \(\times\) N or N \(\times\) 1 matrix only.
norm
Returns the norm of a vector.
Syntax: norm (Mat [ ) ]
crossP
Returns the cross product of two vectors.
Syntax: crossP (Mat-1, Mat-2 [ ) ]
- This command can be used with a 1 \(\times\) N or N \(\times\) 1 matrix only (N = 2, 3).
- A two-element matrix [a, b] or [[a], [b]] is automatically converted into a three-element matrix [a, b, 0] or [[a], [b], [0]].
dotP
Returns the dot product of two vectors.
Syntax: dotP (Mat-1, Mat-2 [ ) ]
- This command can be used with a 1 \(\times\) N or N \(\times\) 1 matrix only.
toRect
Returns an equivalent rectangular form \([\ x\ y\ ]\) or \([\ x\ y\ z\ ]\).
Syntax: toRect (Mat [, natural number] [ ) ]
- This command can be used with a 1 \(\times\) N or N \(\times\) 1 matrix only (N = 2, 3).
- This command returns “x” when “natural number” is 1, “y” when “natural number” is 2, and “z” when “natural number” is 3.
- This command returns a rectangular form when you omit “natural number”.
toPol
Returns an equivalent polar form \([\ r\ ∠\theta\ ]\).
Syntax: toPol (Mat [, natural number] [ ) ]
- This command can be used with a 1 \(\times\) 2 or 2 \(\times\) 1 matrix only.
- This command returns “\(r\)” when “natural number” is 1, and “\(\theta\)” when “natural number” is 2.
- This command returns a polar form when you omit “natural number”.
toSph
Returns an equivalent spherical form \([\ \rho\ ∠\theta\ \ ∠\phi\ ]\).
Syntax: toSph (Mat [, natural number] [ ) ]
- This command can be used with a 1 \(\times\) 3 or 3 \(\times\) 1 matrix only.
- This command returns “\(\rho\)” when “natural number” is 1, “\(\theta\)” when “natural number” is 2, and “\(\phi\)” when “natural number” is 3.
- This command returns a spherical form when you omit “natural number”.
toCyl
Returns an equivalent cylindrical form \([\ r\ ∠\theta\ \ z\ ]\).
Syntax: toCyl (Mat [, natural number] [ ) ]
- This command can be used with a 1 \(\times\) 3 or 3 \(\times\) 1 matrix only.
- This command returns “\(r\)” when “natural number” is 1, “\(\theta\)” when “natural number” is 2, and “\(z\)” when “natural number” is 3.
- This command returns a cylindrical form when you omit “natural number”.