}
void main (void)
{
Cout << endl << "vvedite a, x1, x2\t";
float x1, a;
double x2;
cin >> a >> x1 >>x2;
aGl = x 1* x 1; //
bGl = x 2; // countX ()-
cGl = M _ PI _2; // aGl, bGl, cGl
countX ();
float vir 1 = xGl; // countX ()
xGl ,
countX (),
// = vir 1
// countX ()
aGl = x2;
bGl = x1 + 1.2;
cGl = 0;
countX();
// xGl countX (),
float x =1./11. + a * vir 1 + 1 / xGl;
cout << endl << "\ tX = " << x;
getch ();
}
aGl, bGl, cGl, xGl : main countX (). .
countX ()
countX ()
.
.
1.
countX, , , , b , .
main a, , . countX, X .
main .
variant1.cpp
Define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <conio.h>
using namespace std;
Float bGl; //
float countX (float , float c)
bGl
main
float = (a * cos(bGl + c) - bGl * sin(a + c)) / (pow(a,3) + bGl * bGl);
x return
return x;
}
void main (void)
{
Cout << endl << "vvedite a, x1, x2\t";
float x1, a;
double x2;
cin >> a >> x 1 >> x 2;
bGl countX
bGl = x 2; // bGl
float vir1;
vir1 = countX (x1*x1, M_PI_2);
// countX ()
bGl = x1 + 1.2;
// countX 1/ countX (x 2, 0)
|
|
,
float x = 1/11. + a * vir 1 + 1 / countX (x 2, 0);
cout << endl << "\ tX = " << x;
getch ();
}
2.
countX, , , , b , .
main a, , . countX, X .
main .
variant2.cpp
Define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <conio.h>
using namespace std;