Я хочу сделать паутинный график в c с помощью gnuplot, но кривая построена плохо.
Вот код.
#include <stdio.h>
int main(void){
int i, n=100; // Time
double r=3.80; // Initial condition of maximum rate of increase
double x[102]; // Increase rate
x[0]=0.7; // Initial condition
/*--- making data ---*/
for(i=0;i<=n;i++){
x[i+1]=r*(1-x[i])*x[i];
printf("%lf\t%lf\n",x[i],x[i+1]);
}
return 0;
}

Затем plot "chaos2.plt" with line
в gnuplot.
Я бы хотел построить график из координат, но он строится так.Как мне исправить код?
