Conversion to Cartesian equation