Курсовая работа: Система обработки научных данных
while(z==1||z==2)
{
cout<<"\n\n\n\n\nPress 1 to return to previos menu";
cout<<"\nPress 2 to exit";
cin>>z;
if(z==1)
menu1();
else if(z==2)
exit(0);
else cout<<"Wrong choice";
}
}
void curvefit()
{ int n;
cout<<" Enter the total no of points ";
cin>>n;
cout<<"Enter the values of x and y coordinates of the points\n";
float a[100],b[100];
for( int i=0;i<n;i++)
{
cout<<" X"<<i+1<<" = ";
cin>>a[i];
cout<<" Y"<<i+1<<" = ";
cin>>b[i];
}
long float aa,bb;
cout<<"\nENTER THE TYPE EQUATION YOU WISH TO CURVE FIT";
cout<<"\nFOR LINEAR FORM, y = ax + b,INPUT 2";
cout<<"\nFOR QUADRATIC FORM, y= ax^2 + bx + c,INPUT 3";