Вот прога:
# include <stdio.h>
# define pi 3.14115926
float z1,z2
main (float a)
{ z1=cos(3/8*pi-a/4)*cos(3/8*pi-a/4)-cos(11/8*pi+a/4)*cos(11/8*pi+a/4)
z2=sqrt(2)/2*sin(a/2)
printf("z1=%d z2=%d",z1:8:5,z2:8:5);
}
# include <stdio.h>
# define pi 3.14115926
float z1,z2
main (float a)
{ z1=cos(3/8*pi-a/4)*cos(3/8*pi-a/4)-cos(11/8*pi+a/4)*cos(11/8*pi+a/4)
z2=sqrt(2)/2*sin(a/2)
printf("z1=%d z2=%d",z1:8:5,z2:8:5);
}
#include <stdio.h>
#include <math.h>
# define pi 3.14115926
float z1, z2;
int main()
{
float a;
// здесь введешь a с клавиатуры:
printf("a = ");
scanf("%f", &a);
z1=cos(3/8*pi-a/4)*cos(3/8*pi-a/4)-cos(11/8*pi+a/4)*cos(11/8*pi+a/4);
z2=sqrt(2)/2*sin(a/2);
printf("z1=%8.5f z2=%8.5f",z1, z2);
return 0;
}