Table of Contents

Advertisement

154
CHAPTER 6 Command Reference
POL
Function:
(x coordinate,
Numeric expression
y
coordinate)
Numeric expression
Transforms rectangular coordinates (x
,y)
to polar coordinates (r, 8)
.
Parameter:
x coordinate:
y
coordinate:
Explanation:
Numeric expression }
lx
l
+ lyl
>
0
Numeric expression
®
1) Transforms rectangular coordinates (x
,
y) to polar coordinates
(r , 8)
using
the following relational expressions.
2) The
r
coordinate of
(r
,
8) is given
as
the output of the function, and the
value of the
r
coordinate will be assigned to variable
X and
the value of the
8
coordinate will be assigned to variable
Y
at the same time
.
3) Calculation of the
8
coordinate will correspond to the angle unit (DEG,
RAD
or GRA). The value of
8
will be given
within
the following range
.
DEG: -180° < 8
~
180°
RAD
:
-7T
rad<
8
~
rr
rad
GRA: -200 gra <
8
~
200 gra
4) An error will occur when
lx
l
+
ly
l
=
0.
Example:
10 CLEAR
20
MODE4
30
I NPUT''X
=
"
,A
40
I NPUT''Y
=
''
,B
50
PRINT''r
=
";POL<A,B
6 0
PR I NT
"t
=
"
;
D MS$<
Y
)
70
GOTO
30
*
(r
,
8)
will
be displayed if
(x , y)
is input.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents