.


:




:

































 

 

 

 





. , , . , . [1, 3].

, .

, , .

, .

1

:

x, y ( ). a,

.

Microsoft Visual Studio 2013 ( Win32 Console Application, Win32) (Empty project). .cpp, .

:

#include <stdio.h>

#include <math.h>

#include <stdlib.h>

void main()

{

double x, y, a; //

//

printf_s("x="); scanf_s("%lf", &x);

printf_s("y="); scanf_s("%lf", &y);

//

a = (sqrt(fabs(x - 1)) - pow(fabs(y), 1. / 3)) / (1 + x*x / 2 + y*y / 4);

printf_s("a=%f\n", a);

system("pause"); //

}

 

2

:

, - M1(x1, y1) M2(x2, y2) - . .

Microsoft Visual Studio 2013 ( Win32 Console Application) (Empty project). .cpp, .

:

#include <stdio.h>

#include <math.h>

#include <stdlib.h>

// , M1(x1,y1) M2(x2,y2)

// .

// .

void main()

{

//

double x1, y1, x2, y2;

//

printf_s("x1="); scanf_s("%lf", &x1);

printf_s("y1="); scanf_s("%lf", &y1);

printf_s("x2="); scanf_s("%lf", &x2);

printf_s("y2="); scanf_s("%lf", &y2);

double r1, r2; //

//

r1 = sqrt(x1*x1 + y1*y1);

r2 = sqrt(x2*x2 + y2*y2);

if (r1<r2) // 1

printf_s("x1=%f y1=%f", x1, y1);

else

if (r2<r1) // 2

printf_s("x2=%f y2=%f\n", x2, y2);

else //

printf_s("x1=%f y1=%f x2=%f y2=%f\n", x1, y1, x2, y2);

system("pause"); //

}





:


: 2016-11-18; !; : 536 |


:

:

, .
==> ...

1692 - | 1564 -


© 2015-2024 lektsii.org - -

: 0.008 .