Problem with polar_coordinates()
|
03-12-2018, 09:58 PM
Post: #3
|
|||
|
|||
RE: Problem with polar_coordinates()
Bonsoir,
I found an elegant solution from Michael de Estrada : // Conversion P-R EXPORT pr(X,Y) BEGIN RETURN[X*COS(Y),X*SIN(Y)]; //RETURN(X*COS(Y),X*SIN(Y)); END; // Conversion R-P EXPORT rp(X,Y) BEGIN RETURN[ABS((X,Y)),ARG((X,Y)) MOD 360]; //RETURN(ABS((X,Y)),ARG((X,Y)) MOD 360); END; Thanks a lot for your attention. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)