/* Two curves have a phase shift */ #include <math.h> #include <chplot.h> int main() { int numpoints = 36; array double x1[numpoints], y1[numpoints]; array double x2[numpoints]; class CPlot plot; linspace(x1, 0, 360); y1 = sin(x1*M_PI/180); linspace(x2, 90, 450); plot.data2D(x1, y1); plot.data2D(x2, y1); plot.plotting(); }