Post Reply 
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Problem with polar_coordinates() - Lamas - 03-12-2018, 06:02 PM
RE: Problem with polar_coordinates() - Lamas - 03-12-2018 09:58 PM
RE: Problem with polar_coordinates() - DrD - 03-16-2018, 02:04 PM



User(s) browsing this thread: 1 Guest(s)