27
>
solve(a*x+b=c,x);
b
c
a
Agar tenglama bir nechta yechimga ega bo‟lsa
va undan keyingi
hisoblashlarda foydalanish kerak bo‟lsa,
u holda
solve
buyrug‟iga
biror-bir nom
name
beriladi.. Tenglamaning qaysi yechimiga murojoat qilish kerak bo‟lsa,
uning nomi va kvadrat qavs ichida esa yechim nomeri yoziladi:
name[k]
.
Masalan:
>
x:=solve(x^2-a=0,x);
:=
x
,
a
a
>
x[1];
a
>
x[2];
a
Tenglamalar sistemasini yechish.
Tenglamalar
sistemasi ham xuddi
shunday
solve({t1,t2,…},{x1,x2,…})
buyrug‟i
yordami bilan yechiladi, faqat endi
buyruq parametri sifatida birinchi figurali qavsda bir-
biri bilan vergul bilan
ajratilgan
tenglamalar, ikkinchi figurali qavsda esa noma‟lum o‟zgaruvchilar
ketma-ketligi yoziladi.
Masalan:
1)Tenglamalar sistemasini yeching.
>eq:={x-y=1,x+y=3};
eq := {x - y = 1, x + y = 3}
> s:=solve(eq,{x,y});
Enter tugmasini bosib natija:
s := {y = 1, x = 2}.
28
2)Tenglamalar sistemasini yeching.
> eq:={2*x-2*y=4,x+4*y=6};
eq := {x + 4 y = 6, 2 x - 2 y = 4}
> s:=solve(eq,{x,y});
Enter tugmasini bosib natija:
s := {y = 4/5, x = 14/5}
3)Tenglamalar sistemasini yeching.
“Maple” dasturida quyidagicha kiritiladi:
eq:={sqrt(x)-2*sqrt(y)=4,sqrt(x)+4*sqrt(y)=6};
> s:=solve(eq,{x,y});
Do'stlaringiz bilan baham: