#include <math.h>
#include <chplot.h>
int main() {
array double x[360], y[360], z[2][360];
int i;
linspace(x, 0, 360);
y = sin(x*M_PI/180);
for(i=0; i<360; i++) {
z[0][i] = cos(x[i]*M_PI/180);
z[1][i] = y[i];
}
plotxyz(x, y, z, "Ch plot", "xlabel", "ylabel", "zlabel");
}