58
Gemini GV6K/GT6K Command Reference
[ COS() ]
Cosine
Type
Operator
(Trigonometric)
Syntax
COS(r)
(see
below)
Units
r
=
radians
or
degrees
(depending
on
RADIAN
command)
Range
r
=
0.00000
-
±
17500
Default
n/a
Response
n/a
See Also
[
ATAN
],
[
PI
],
RADIAN,
[
SIN
],
[
TAN
],
VAR
Product Rev
GT6K 6.0
GV6K 6.0
Use this operator to calculate the
cosine of a number given in radians or
degrees (see
RADIAN
command). If
“
a
” and “
b
” are coordinates of a point
on a circle of radius “
r
”, then the angle
of measure “
θ
” can be defined by the
equation:
cos
b
r
θ =
(see illustration at right)
If a value is given in radians and a
conversion is needed to degrees, or
vice-versa, use the formula:
360° = 2
π
radians
.
y
x
r
b
a
θ
sin
θ =
a
r
cos
θ =
b
r
tan
θ =
a
b
The graph to the right
shows the amplitude of
y
on the unit circle for
different values of
x
.
y = Cos x
1
0.707
0
-1
-0.707
4
4
3
π
π
5
π
4
7
π
4
2
π
3
π
2
2
Radians
Amplitud e
(y axis)
(x axis)
2
π
Ra di ans = 3 60 De gr ee s
π
π
Syntax:
VARi=COS(r)
where
i
is the variable number and
r
is a value in either radians or degrees
depending on the
RADIAN
command. Parentheses (
()
) must be placed around the
COS
operand.
The result will be specified to 5 decimal places.
Example:
VAR1=5 * COS(PI/4)
; Set variable 1 equal to 5 times the cosine of
;
π
divided by 4
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...