Im mechanics engineering student and Im working on torsion problem of elasticity. I would be thankful if someone teaches me how to map a non-circular closed curve with components of:

x=L*(cos(theta)+W*cos(n*theta))

y=L*(sin(theta)-W*sin(n*theta))

onto a circle. ( L resembles radius, n and W control the shape of the closed curve)