/*-------------------------------------------------------------*/
/* Cut this and save to gen1.c				       */
/* Program by Gregory F. Shay  1988			*/
#include <math.h>
main()
{
	int i,j,k;
	float a,b,theta,theta2,theta3;
	float pi,jt;

pi = 3.1415926;

printf("r\n7\n");
for(i=0;i<128;i++)
	{
	theta = 3*i*2.*pi/128.;
	theta3= 5*i*2.*pi/128.;
	theta2 = i*2.*pi/128.;
	jt = cos(theta)+cos(theta3)+cos(i*2.*pi/128.);
	printf("%g\n",jt);
	}
}
