r =

r max

Enter a formula for polar coordinate r in terms of theta (using a 't' to represent theta) in the top box. Enter a beginning and ending angle, and a value for maximum expected r. Then hit the Plot! button.

If you make an error in the writing the formula, use the Refresh button in your browser.

See some interesting functions below.

This page demonstrates the use of JavaScript and DHTML to produce graphs of functions in polar coordinates. Functions available in JavaScript are abs(x), acos(x), asin(x), atan(x), ceil(x), cos(x), exp(x), floor(x), log(x), max(x,n), min(x,n), pow(x,n), random(), round(x), sin(x), sqrt(x) and tan(x).

Some interesting function to try plotting:

• a circle: r = 1     {an s orbital}
• another circle: sin(t)
• and one more: cos(t)
• a vertical line: 1/cos(t)
• a horizontal line: 1/sin(t)
• a straight line: 2/(sin(t)-1*cos(t))      {with slope of 1 and intercept of 2}
• a parabola: tan(t)/cos(t)
• a limaçon: 1-2*cos(t)
• a limniscate: sqrt(abs(sin(2*t)))
• a cardioid: 2+2*sin(t)
• spiral of Archimedes: t
• exponential spiral: exp(t/50)
• logarithmic spiral: log(t)
• parabolic spiral: sqrt(t)
• reciprocal spiral: 1/t
• exponential reciprocal spiral: exp(-t/20)
• logarithmic reciprocal spiral: 1/log(t
• three-leafed rose: sin(3*t)
• five-leafed rose: sin(5*t)
• a cissoid: sin(t)*tan(t)
• conchoid of Nicomedes: 2/cos(t)-1
• a parabola: 2/(1-cos(t))
• an ellipse: 20/(7-3*cos(t))
• a py orbital: pow(sin(t),2)
• a px orbital: pow(cos(t),2)
• a dz2 orbital: pow(1-3*cos(t)*cos(t),2)
• a dxz orbital: pow(sin(t)*cos(t),2)

Other pages by the author. Email.
Debut: December 26, 2003. Revision No. 2. Wednesday, December 29, 2004.
Visitors: