Implement Super-Formula in 2D & 3D in VEX

In this project by using VEX, I try to implement super-formula in 2D & 3D to achieve variety of shapes by changing some parameters.

2D Super Formula

The general formula for the Supershape is :

​In This Formula r and phi are polar coordinates  (radius,angle).  n1, n2, n3, and m are real numbers. a and b are real numbers excluding zero.