So we chose the program in relation to polar coordinates for the assignment.
I will adapt the programme to make it more about the S-equation for the tangent of the polar angle.
I will also guide you in the choice of a,b,c,d.
This requires same scaling considerations for

dx/dt = a x + b y

dy/dt = c x + d y