Курсовая работа: Система обработки научных данных
while(ch=='y')
{
cout<<" enter the value of Y";
cin>>ey;
ey = (bxy*(ey- my)) + mx;
cout<<" The estimated value of X = "<<ey<<endl;
cout<<" do you want to continue";
cin>>ch;
}
}
else
break;
break;
}
case 2:
{
cout<<"Enter the total no of data ";
cin>>n;
cout<<" Enter the value of sum of x ";
cin>>z1;
cout<<" Enter the value of sum of y ";
cin>>z2;
cout<<"Enter the value of sum of products of x znd y ";
cin>>z3;
cout<<" Enter the value of sum of squares of x ";
cin>>z4;
cout<<"Enter the values of sum of squares of y ";
cin>>z5;
byx = (n*z3-z1*z2)/(n*z4 - pow(z1,2));