Курсовая работа: Система обработки научных данных

for(i=0;i<nn;i++)

cout<<e[i]<<" ";

cout<<endl;

float sum2,sum3,sum4;

sum2 = 0.0;

sum3 =0.0;

sum4 = 0.0;

for(i=0;i<nn;i++)

{

sum2 = sum2 +(c[i]*e[i]);

sum3 = sum3 +(c[i]*pow(e[i],2));

sum4 = sum4+ c[i];

}

cout<<"The sum of f * u = "<<sum2<<endl;

cout<<" The sum of f*u2 = "<<sum3<<endl;

cout<<" The sum of f = "<<sum4<<endl;

v1 = sum3/sum4;

cout<<" The value of 1 = "<<v1<<endl;

v2 = sum2/sum4;

cout<<" The value of 2 = "<<v2<<endl;

v3 = pow(v2,2);

variance = (pow(ci,2)*(v1 -v3));

int u= up;

cout<<"Class\t"<<setw(12)<<"Mid "<<setw(10)<<"Frequency\n";

cout<<"interval\t"<<setw(12)<<"value"<<endl;

for( int k=0;k<nn;k++)

{

cout<<u<<" - "<<u+ci<<"\t"<<setw(12)<<b[k]<<setw(10)<<c[k]<<endl;

u = u+ci;

К-во Просмотров: 666
Бесплатно скачать Курсовая работа: Система обработки научных данных