Python Equivalent for matlab cart2pol and pol2cart -
I would like to use pol2cart and cart2pol for two functions in MATLAB.
Is there an equivalent Python Function? Or if we can define work? For example, I tried to use the CeMatePactor function, but it only accepts one argument, I have 2 arguments to cross the polar and REC function.
P> I have tried to use this function for cart2pol:
def cart2pol (x, y): theta = atan2 (y, x) rho = Sqrt (x ** 2 + y ** 2) returns (theta, ro)
thanks
Comments
Post a Comment