1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
using namespace std;
int main()
{
double t[] = { 700,730,760,790,810,840,910,1000 };
double k[]= { 0.011,0.035,0.105,0.343,0.789,2.17,20,145 } ;
double yhat[7] = {};
double yhatvalue = 0.0;
double R = 0.083144598; //in kJ K−1 mol−1
double A = 1.1E12;
for (int i = 0; i < 8; i = i + 1)
{
yhatvalue = A*(exp(-150/( R*t[i])));
}
cout << yhat << endl;
system("Pause");
}
|