back to Command Reference
[All Models]
Converts rectangular coordinates (x,y) to polar coordinates (r,theta).
POL ( x-coordinate , y-coordinate )
└─────┬────┘ └─────┬────┘
Numeric expression Numeric expression
POL(3, 2)
| x-coordinate & y-coordinate: Numeric expression. | x | + | y | > 0 |
Converts rectangular coordinates (x,y) to polar coordinates (r,theta). The following relational expressions are used at this time:
r = sqrt(x^2 + y^2) cos(theta) = x / sqrt(x^2 + y^2) sin(theta) = y / sqrt(x^2 + y^2)
10 A=5 : B=3
20 Z=POL(A,B)
30 PRINT X; Y
Converts rectangular coordinate point (5,3) to polar coordinates.