#include <math.h>
#include 
#include <chplot.h>

int main() {
    int numpoints = 100;
    array double x[numpoints], y[numpoints];

    linspace(x, -10, 10);
    x = x+(x==0)*FLT_EPSILON; /* if x==0, x becomes gifilon */
    y = sin(2*x)./x;
    plotxy(x, y, "y=sin(x)/x", "x", "y");
}