What you have written makes no sense. The formula you give is in x and y and has the parameter "a". But the values you give are for r and theta and have no "a". I did not check to see if changing to polar coordinates gives those values for any a but certainly do not have an "a".