Casio ClassPad II fx-CP400 User Manual
Page 78

Chapter 2: Main Application
78
u norm [Action][Vector][norm]
Function: Returns the norm of a vector.
Syntax: norm (Mat [ ) ]
Example: To obtain the norm of the vector [1, 2, 3]
u crossP [Action][Vector][crossP]
Function: Returns the cross product of two vectors.
Syntax: crossP (Mat-1, Mat-2 [ ) ]
• This command can be used with a 1
× N or N × 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]].
Example: To obtain the cross product of the two vectors [1, 3, 5] and [2, 4, 6]
u dotP [Action][Vector][dotP]
Function: Returns the dot product of two vectors.
Syntax: dotP (Mat-1, Mat-2 [ ) ]
• This command can be used with a 1
× N or N × 1 matrix only.
Example: To obtain the dot product of the two vectors [1, 3, 5] and [2, 4, 6]
u toRect [Action][Vector][toRect]
Function: Returns an equivalent rectangular form [
x
y
] or [
x
y
z
].
Syntax: toRect (Mat [,natural number] [ ) ]
• This command can be used with a 1 × N or N × 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”.
Example: To transform the polar form [
'
2 ,
∠(π/4)] into an equivalent
rectangular form (in the Radian mode)
u toPol [Action][Vector][toPol]
Function: Returns an equivalent polar form [
r
∠
Ƨ
].
Syntax: toPol (Mat [,natural number] [ ) ]
• This command can be used with a 1 × 2 or 2 × 1 matrix only.
• This command returns “
r
” when “natural number” is 1, and “
Ƨ
” when “natural number” is 2.
• This command returns a polar form when you omit “natural number”.
Example: To transform the rectangular form [1, 2] into its equivalent polar
form
u toSph [Action][Vector][toSph]
Function: Returns an equivalent spherical form [
ρ ∠
Ƨ
∠
φ].
Syntax: toSph (Mat [,natural number] [ ) ]
• This command can be used with a 1
× 3 or 3 × 1 matrix only.
• This command returns “
ρ” when “natural number” is 1, “
Ƨ
” when “natural number” is 2, and “
φ” when “natural
number” is 3.
• This command returns a spherical form when you omit “natural number”.