* newton'sche bewegungsgleichung
*
*
- * usage: ./newton <steps> <alpha> <x_p> <v_p>
+ * usage: ./newton <steps> <alpha> <x_0> <v_0>
*
*/
int i,j,steps;
int fd; /* data file */
double *buf;
- char filename[32];
+ char filename[64];
if(argc!=5) {
printf("usage: %s <steps> <alpha> <x_0> <v_0>\n",argv[0]);
gp_add_data(fd,buf,3,steps,TYPE_DOUBLE);
gp_close(fd);
+ free(buf);
+
return 1;
}