794 Appendix A: Functions and Instructions
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() 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 result is returned as a degree, gradian
or radian angle, according to the current angle
mode setting.
In Degree angle mode:
cos((p/4)ô ) ¸
‡2
2
cos(45)
¸
‡2
2
cos({0,60,90})
¸ {1 1/2 0}
In Gradian angle mode:
cos({0,50,100}) ¸ {1
‡2
2
0}
In Radian angle mode:
cos(p/4) ¸
‡2
2
cos(45¡)
¸
‡2
2