Javascript - Math object

Converting between rectangular and polar coordinates

This example illutrates the use of the built in Math object, by converting between polar and rectangular coordinate systems. The Math functions used are sqrt(), pow(), round() as well as the trigonometric ratios cos(), sin() and atan()

Enter polar coordinates as
magnitude,angle (degrees)

rectangular coordinates as a + jb