Professional Documents
Culture Documents
#include
#include
#include
#include
#include
#include
#include
#include
<cstdlib>
<iostream>
<iostream>
<fstream>
<iomanip>
<stdio.h>
<stdlib.h>
<conio.h>
<math.h>
x = a + i*h;
if ((i % 2) > 0)
{
x1 = x1 + (1 / (sqrt(2*3.1416)))*pow(2.7
18281828459,((pow(x,2))/-2));
}
else
{
x2 = x2 + (1 / (sqrt(2*3.1416)))*pow(2.7
18281828459,((pow(x,2))/-2));
}
}
x5 = (h*(x3 + 2 * x2 + 4 * x1)) / (3);
Er = E - x5;
}
cout << Er << endl;
cout << x5 << endl;
cout << b << endl;
system("PAUSE");
return 0;
}