title: Python Equivalent for matlab cart2pol and pol2cart
body: <p>I would like to use the two functions pol2cart and cart2pol present in MATLAB.</p>
  
  <p>Are there any equivalent Python functions? Or if we can define the functions?</p>
  
  <p>For instance, I tried using cmath.polar function but it only accepts one argument whereas I have 2 arguments to be passed inside polar and rec function.</p>
  
  <p>I have tried using this function for cart2pol:</p>
  
  <pre><code>def cart2pol(x, y):
      theta = atan2(y, x)
      rho = sqrt(x**2 + y**2)
      return (theta, rho)
  </code></pre>
  
  <p>Thank you</p>