Professional Documents
Culture Documents
l sin( ) ( 2 P 4 l + 2 l cos( ) ) 2
2 2
Atr( l , ) := P l sin( ) 2l sin( ) + l sin( ) cos( ) Pentru ca suprafaa trapezului s fie maxim trebuie ca derivatele pariale n raport cu parametrii l i alfa s fie egale cu zero: d Atr( l , ) P sin( ) 4 l sin( ) + 2 l cos( ) sin( ) dl <----------derivata funciei n raport cu l
Metoda Mathcad l := 0.4 Given ( P 4l) sin( ) + l sin( 2 ) = 0 ( P 2l) l cos( ) + l cos( 2 ) = 0
2
:= 1.1
P := 1
<-------Sistemul de rezolvat
l := Find( l , )
l = 0.333 = 60 deg Metoda Newton-Raphson f0( l , ) := ( P 4l) sin( ) + l sin( 2 ) f1( l , ) := ( P 2l) l cos( ) + l cos( 2 )
2
<------Soluia sistemului
d f0( l , ) d
d f1( l , ) d
<--------Jacobianul sistemului
Metode Numerice
f ( x ) :=
F( x ) := dfdx x , x
0
x - matricea necunoscutelor
f ( x)
Se ncepe iteraia cu o valoare iniial a lui x <0>, pentru un numr de iteraii k dat. k := 0 .. 10 0 x := <-------Numrul de iteraii
0.5 1.5
k+ 1 k x := newton x , f , F
)
3
<-----Algoritmul de calcul
10 ...
x= 0
1
1.5 1.464 0.765 1.008 1.047 1.047 1.047 1.047 1.047 1.047
l := xcols( x) 1
l = 0.333 m = 60 deg
Metode Numerice
Aplicaia 2. S se rezolve urmatorul sistem de ecuatii neliniare: sin( x ) + y + ln( z) = 7 3 x + 2 z = 1 x+y+z=5 Metoda Matchad x := 1 Given sin( x ) + y + ln( z) 7 = 0 3 x + 2 + 1 z = 0 x+y+z5=0 SolutiaSistem := Find( x , y , z)
y 3 2 y 3 2
y := 1
z := 1
<--------Soluiile iniiale
<---------Soluia sistemului
Metoda Newton-Raphson
f0( x , y , z) := sin( x ) + y + ln( z) 7 f1( x , y , z) := 3x + 2 z + 1 f2( x , y , z) := x + y + z 5
y 3 2
d d f0( x , y , z) f0( x , y , z) dy dz
d d f1( x , y , z) f1( x , y , z) dy dz d d f2( x , y , z) f2( x , y , z) y d dz
1 1 1
Metode Numerice
NewRaphs x , f , fics :=
k0 ik k x x
i
<------Algoritmul de rezolvare
while F x
( i)
i
f x
( i)
1
0.0000001
kk+1 x
i+ 1
x Fx
i+ 1
( i)
f x
i
( i)
eroare
i+ 1
ii+1 ( x eroare i )
NewRaphs( x0 , f , F)
1 0.603 0.469 0.593 0.599 0.599 Solutiesistem = 1 3.421 2.59 2.403 2.396 2.396 1 2.182 1.941 2.004 2.005 2.005