#include <math.h>
#include <chplot.h>
int main() {
int numpoints = 36;
array double x[numpoints], y[numpoints];
array double x2[numpoints], y2[numpoints];
array double x3[numpoints], y3[numpoints];
class CPlot plot;
linspace(x, 0, 360);
y = sin(x*M_PI/180);
linspace(x2, 0, 180);
y2 = sin(x2*M_PI/180);
linspace(x3, 0, 90);
y3 = sin(x3*M_PI/180);
plot.data2D(x, y);
plot.data2D(x2, y2);
plot.data2D(x3, y3);
plot.plotType(PLOT_PLOTTYPE_LINES, 0, 0, 30);
plot.plotType(PLOT_PLOTTYPE_IMPULSES, 1);
plot.plotType(PLOT_PLOTTYPE_IMPULSES, 2);
plot.plotting();
}