Executes the simplification of a vector written under polar form.
The matrix pointed to by mat must be a one-line, two-column matrix.