#include <math.h> #include <chplot.h> int main() { array double x[360], y[360], z[360]; class CPlot plot; linspace(x, 0, 360); y = sin(x*M_PI/180); z = cos(x*M_PI/180); plot.dimension(3); plot.data3D(x, y, z); plot.plotting(); }