И у меня в данных П/2 как мне его вводить ?
#include
#include
#include
using namespace std;
int main()
{
setlocale(LC_ALL, "russian");
float a,b,xp,xk,h,x,y;
cout << "a= "; cin >> a;
cout << "b= "; cin >> b;
cout << "xp= "; cin >> xp;
cout << "xk= "; cin >> xk;
cout << "h= "; cin >> h;
x = xp;
cout << "Аргумент" << "\t" << "Функция " << endl;
cout << setiosflags(ios::scientific);
while (x <= xk + h/2);
{
y = b * pow(x,7.1) * log10(x) * (a*x) + exp(a*b) * pow(tan(x),2) * (a * x) / acos(x) * (0.05 * b * x) ;
cout << x << "\t" << "\t" << y << endl;
x += h;
}
system ("pause");
return 0;
}
