Hi @Salman_Sheikh Welcome to the forum!
I believe you're trying to convert polar coordinates to Cartersian coordinates, or vice-versa. Either way, I asked our new AI Writer to write the snippet for me, and got the following snippets.
I checked them and it looks to be correct. Please let me know if it works for you.
To convert Cartesian coordinates to polar coordinates, please enter the values below:
Enter x-coordinate: 
Enter y-coordinate: 
The polar coordinates (r, theta) are: (, )
The Jacobian (J) is: 
Polar Coordinate Input:
Radius (r): 
Angle in degrees (θ): 
 {# Convert angle to radians #}
Cartesian Coordinates:
X = r*cos(θ) = 
Y = r*sin(θ) =