Owner's Manual

Table Of Contents
Appendix A: Categorical Listing of Operations 793
CopyVar CATALOG
CopyVar
var1
,
var2
Copies the contents of variable
var1
to
var2.
If
var2
does not exist, CopyVar creates it.
Note:
CopyVar is similar to the store instruction
(! ) when you are copying an expression, list,
matrix, or character string except that no
simplification takes place when using
CopyVar.
You must use
CopyVar with non-algebraic
variable types such as Pic and GDB variables.
x+y! a ¸ x + y
10! x ¸ 10
CopyVar a,b ¸ Done
a! c ¸ y + 10
DelVar x ¸ Done
b ¸ x + y
c ¸ y + 10
cos() @ 2X key H X key
cos(
expression1
)
expression
cos(
list1
)
list
cos(
expression1
) returns the cosine of the
argument as an expression.
cos(
list1
) returns a list of the cosines of all
elements in
list1
.
Note: The argument is interpreted as either a
degree or radian angle, according to the current
angle mode setting. You can use ó or ô to
override the angle mode temporarily.
In Degree angle mode:
cos((p/4)ô ) ¸
2
2
cos(45) ¸
2
2
cos({0,60,90}) ¸ {1 1/2 0}
In Radian angle mode:
cos(p/4) ¸
2
2
cos(45¡) ¸
2
2
cos(
squareMatrix1
)
squareMatrix
Returns the matrix cosine of
squareMatrix1
. This is
not
the same as calculating the cosine of each
element.
When a scalar function f(A) operates on
squareMatrix1
(A), the result is calculated by the
algorithm:
1. Compute the eigenvalues (l
i
) and
eigenvectors (V
i
) of A.
squareMatrix1
must be diagonalizable. Also, it
cannot have symbolic variables that have not
been assigned a value.
2. Form the matrices:
B =
l
1
0
… 0
0
l
2
… 0
0
0
… 0
0
0
l
n
and X = [V
1
,V
2
, … ,V
n
]
3. Then A = X B Xê and f(A) = X f(B) Xê. For
example, cos(A) = X cos(B) Xê where:
cos (B) =
All computations are performed using floating-
point arithmetic.
In Radian angle mode:
cos([1,5,3;4,2,1;6,ë 2,1]) ¸
.212… .205… .121…
.160… .259… .037…
.248… ë.090… .218…