.


:




:

































 

 

 

 


main




}

void main (void)

{

Cout << endl << "vvedite a, x1, x2\t";

float x1, a;

double x2;

cin >> a >> x1 >>x2;

aGl = x1*x1; //

bGl = x2; // countX ()-

cGl = M_PI_2; // aGl, bGl, cGl

countX ();

float vir1 = xGl; // countX ()

xGl ,

countX (),

// = vir1

// countX ()

aGl = x2;

bGl = x1 + 1.2;

cGl = 0;

countX();

// xGl countX (),

float x=1./11. + a * vir1 + 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 >> x1 >>x2;

bGl countX

bGl = x2; // bGl

float vir1;

vir1 = countX (x1*x1, M_PI_2);

// countX ()

bGl = x1 + 1.2;

// countX 1/countX(x2, 0)

,

float x = 1/11. + a * vir1 + 1 / countX(x2, 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;





:


: 2016-10-06; !; : 523 |


:

:

, .
==> ...

1767 - | 1587 -


© 2015-2024 lektsii.org - -

: 0.011 .