Курсовая работа: Система обработки научных данных
mx = z1/n;
my = z2/n;
clrscr();
cout<<"The sum of x = "<<z1<<endl;
cout<<" The sum of y = "<<z2<<endl;
cout<<" The sum of product of x and y = "<<z3<<endl;
cout<<" The sum of squares of x = "<<z4<<endl;
cout<<" The sum of squares of y = "<<z5<<endl;
cout<<"\n\nThe Line Of Regression of Y on X is \n";
cout<<"\t Y - "<<my<<" = "<<byx<<"( X -"<<mx<<" )";
cout<<endl;
cout<<"The Line Of Regression of X on Y is \n";
cout<<"\t X - "<<mx<<" = "<<bxy<<"( Y -"<<my<<" )";
cout<<endl;
cout<<"\n\nWould you like to estimate values of y or x based on the above equations\n";
cout<<"1. to estimate Y press 1\n";
cout<<"2. To estimate X press 2\n";
cout<<"3. Exit and return to previous menu press 3\n";
cout<<"enter choice?";
cin>>choice8;
clrscr();
float ex,ey;
if(choice8 == 1)
{ char ch = 'y';
while(ch=='y')
{
cout<<" enter the value of X";
cin>>ex;
ey = (byx*(ex- mx)) + my;