Documente Academic
Documente Profesional
Documente Cultură
2.g(x)=cos2x- e x ,
x -1 -0,5 0 0,5 1
f(x) 1,99999873 0,24920367 -1 0,249204 1,999999
2 3
semnele + + - + +
f(x)
2.5
2 2 2
1.5
1
f(x)
0.5
0.25 0.25
0
-1.5 -1 -0.5 0 0.5 1 1.5
-0.5
-1 -1
-1.5
Rdcinile ecuaiei G(x)
semnel - +
e + - - - + - -
Subiectul 2. Utiliznd metoda analitic de localizare a rdcinilor, s se verifice i s se
concretizeze segmentele care conin rdcinile ecuaiilor din subiectul 1
Rdcinile ecuaiei F(x)
Lucram pe intervalul [-0,5;-0,4]
a b f(a) f(b) c f(c) f(a)*f(c)< f(b)*f(c
0
f(a)*f(c)<0 f(b)*f(c)<0
a b f(a) f(b) c f(c)
-
1,65077 1,4488224 -
-1,045 9 483 0,05005010 0,0725137
-2 1,045 9 -1,72505 2
-2 -1,043 - 1,4438224 1,043 0,01470495 - -
1,65077 483 9 1,7217625 0,0212313
9 5
-
1,65077 1,4458224 - -
9 483 0,00586637 1,7234180 0,0084817
-2 -1,041 1,041 2 5 32
-
1,65077 1,4458224 - -
9 483 0,00586637 1,7267291 0,0084817
-2 -1,043 1,043 2 3 32
Subiectul 3.
A. Determinai soluiile ecuaiei pentru n divizri utiliznd programul Pascal.
Ecuaia F(x)
program P1;
var a,b,c: real;
i,n:integer;
function f(x:real):real;
begin
f:=(sqr(x))-(2*cos(3.1415926535897932385*x));
end;
begin a:=0; b:=1;
n:=16; for i:=1 to n do begin c:=(b+a)/2;
writeln(i=,i:3, x=,c:10:8, f(x)=,f(c):12:8);
readln;
if f(c)=0 then
else if f(c)*f(a)>0 then a:=c else b:=c;
end;
end.
i= 1 x=0,45f(x)= -0,0905
i= 2 x=0,45 f(x)= -0,0305
i=3 x=0,45f(x)= -0,001
i=4 x=0,45 f(x)= -0,040665
i=5 x=0,45f(x)= -0,002992456
i=6 x=0,45f(x)= -0,01216882
EcuaiaG(x)
program P1;
var a,b,c: real; i,n:integer;
function f(x:real):real;
begin f:=cos(2*x)-exp(x);
end;
begin a:=0; b:=1;
n:=16; for i:=1 to n do begin c:=(b+a)/2;
writeln(i=,i:3, x=,c:10:8, f(x)=,f(c):12:8);
if f(c)=0 then
else if f(c)*f(a)>0 then a:=c else b:=c;
end; end.
Ecuaia F(x)
program p2;
var a,b,c,eps: real;
function f(x:real):real;
begin f:= sqr(x))-(2*cos(3.1415926535897932385*x));
end;
begin a:=2; b:=4; eps:=0.00017;
repeat c:=(b+a)/2;
writeln(x=,c:10:8, f(x)=,f(c):12:8);
if f(c)=0 then
else if f(c)*f(a)>0 then a:=c else b:=c;
until abs(b-a)<eps;
end.
Ecuaia G(x)
program p3;
var a,b,c,eps: real;
function f(x:real):real;
begin f:= cos(2*x)-exp(x);
end;
begin a:=2; b:=4; eps:=0.00017;
repeat c:=(b+a)/2;
writeln(x=,c:10:8, f(x)=,f(c):12:8);
if f(c)=0 then
else if f(c)*f(a)>0 then a:=c else b:=c;
until abs(b-a)<eps;
end.