,,,
: , .
:
1. , .
2. .
3. () . .
4. . .
5. .
.
1.
(1)
.
2. , , (1) .
3. () , .
.
1. (1). .1 , , (1). , (1) , (.2). . , , .
. , (), (). , (1) .
2. . (1) : . , :
(2)
,
, , .
. (2). , , , . , , ( ), . , :
(3)
(3) , . (3) : . (1) .
. , , :
(4)
, (4) , - . . :
(5)
(5) .
. , .. . :
(6)
(6) .
: , , .
3. - , 3.
Program Pr_iter;
Uses Crt;
var n:integer;
x0,x,eps,d,y,z,c:real;
begin
clrscr;
n:=0;x0:=-1;c:=-0.1;x:=x0;eps:=0.001;d:=0.01;
repeat
y:=x+c*(exp(x)+x);z:=x;
n:=n+1;
writeln(n:3,x:9:5,y:9:5,abs(y-x):9:5,abs(exp(y)+y):9:5);
x:=y;
until (abs(z-x)<=eps) and (abs(exp(x)+x)<=d);
end.
#include <stdio.h>
#include <math.h>
main()
{
int n=0;
float x,y,z,x0=-1,c=-0.1,eps=0.001;d=0.01;
x=x0;
clrscr();
do
{
y=x+c*(exp(x)+x);z=x;
printf(%d %.4f %.4f %.4f %.4f\n,n++,x,y,fabs(y-x),
fabs(exp(y)+y));
x=y;
}
while(fabs(z-x)>e || fabs(exp(x)+x)>d;
getch();
}
: (1) : ; ; .
4. .
: ; ; ; ; ( ); () (); ( , , ); .
1. ( 2).
2. .
3. , , .
4. () , () , , . :
5. .
6. .
1. | ||
2. | ||
3. | ||
4. | ||
5. | ||
6. | ||
7. | ||
8. | ||
9. | ||
10. | ||
11. | ||
12. | ||
13. | ||
14. | ||
15. | ||
16. | ||
17. | ||
18. | ||
19. | ||
20. | ||
21. |
Copyright (c) 2024 Stud-Baza.ru , , , .