#include <math.h>
#include <chplot.h>
int main() {
int numpoints = 360;
array double theta[numpoints], r[numpoints];
class CPlot plot;
linspace(theta, 0, M_PI);
r = sin(5*theta); // Y-axis data.
plot.polarPlot(PLOT_ANGLE_RAD);
plot.data2D(theta, r);
plot.sizeRatio(1);
plot.plotting();
}