#include <math.h>
#include <chplot.h>
int main() {
int numpoints = 36;
array double x[numpoints], y[numpoints];
string_t title="Sine Wave"; // Define labels.
class CPlot plot;
linspace(x, 0, 360);
y = sin(x*M_PI/180);
plot.title(title);
plot.data2D(x, y);
plot.plotting();
}