[x=-4, y=3, z=-1]
2. Gauss usulida uch noma’lumli chiziqli tenglamalar sistemasini echish.
> with(LinearAlgebra):
A := <<2,3,5>|<7,14,25>|<13,12,16>>;
> B := <0,18,39>;
> GaussianElimination(A);
> GaussianElimination(A,'method'='FractionFree');
>ReducedRowEchelonForm();
3. To‘rt noma’lumli chiziqli tenglamalar sistemasini Maple7 dasturida echish
1) Oddiy usulida echish
> sys:=({1*x1-5*x2-1*x3+3*x4=-5,2*x1+3*x2+1*x3-1*x4=4, 3*x1-2*x2+3*x3+4*x4=-1,5*x1+3*x2+2*x3+2*x4=0}):
> solve(sys,{x1,x2,x3,x4});
2) Gauss usulida echish
> with(LinearAlgebra):
A := <<1,2,3,5>|<-5,3,-2,3>|<-1,1,3,2>|<3,-1,4,2>>;
> b := <-5,4,-1,0>;
> GaussianElimination(A,'method'='FractionFree');
> ReducedRowEchelonForm();
Kramer qoidasi yordamida echish.
Berilgan tenglamalar sistema nomahlumlarning koeffitsientlari va ozod hadalari yordamida determinantlarni tuzamiz va ularni hisoblashning uchburchak yoki Sarrus usullaridan foydalanamiz. Biz (1) tenglamlar sistemasining determinantlarini tuzib, uchburchak usulida hisolab uni son qiymatlarni topamiz.
3 =
Do'stlaringiz bilan baham: |