I will not enter into the discussion of mathematics or programming. For me, this question has both. This is my business.
, [0,1], . , . , , .
, :
- ,
(x,y) (0,0). a [0,1].w = 2 * pi * a. . y = x * tan(w) , .- : , (rho) .
r , , , 3, . - : . "" ,
w pi/4 3pi/4; " " w 3pi/4 5pi/4; " " w 5pi/4 7pi/4; "" w 7pi/4 2pi 0 pi/4. - :
y = s / 2. , 3 , s/2 = xi tan(w). (xi, s/2) rho: R = sqrt(xi^2 + (s/2)^2)b [0,1]- [r, R]:
rho = r + b * R - ,
X = rho * cos(w) Y = rho * sin(w), .
, 5 , , ( w).
, , , . , . , , . , ( , , ).