Converting polar curves to Cartesian form