Add graph, plot

This commit is contained in:
rsc 2004-04-14 19:54:10 +00:00
parent 6e18e03e63
commit 4314729dde
44 changed files with 2307 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#include "mplot.h"
void plotpoly(int num[], double *ff[]){
double *xp, *yp, **fp;
int i, *n;
n = num;
fp = ff;
while((i = *n++)){
xp = *fp++;
yp = xp+1;
move(*xp, *yp);
while(--i){
xp += 2;
yp += 2;
vec(*xp, *yp);
}
}
}