> x:=solve(x^2-a=0,x);
> x[1];
> x[2];
> x[1]+x[2];
0
Misol 1. Tenglamani yeching.
> solve(1998*x^2-2000*x+2=0,x);
> x:=solve(1998*x^2-2000*x+2=0,x);
> x[1];
> x[2];
Misol 2. va sonlari tenglamaning ildizlari bo’lsa, ildizlari yig’indisi va ayirmasini toping.
> x:=solve(3*x^2-2*x-6=0,x);
> x[1];
> x[2];
> x[1]+x[2];
> x[1]-x[2];
Tenglamalar sistemasini yechish
Tenglamalar sistemasi solve({eq1,eq2,…},{x1,x2,…}),buyrug’I yordamida yechiladi, faqat aylana qavslar ichidagi 1- figurali qavs ichida tenglamalar, ikkinchi figurali qavs ichida esa tenglamaning o`zgaruvchilari kiritiladi. Agar sizga tenglamaning yechimlari bilan bog’liq ravishda keyingi hisoblashlar kerak bo`lsa, solve komandasi name ning qandaydir nomini ifodalaydi. So`ngra assign(name) buyrug’i uni to`ldiradi. Shundan keyin yechimlar ustida matematik amallar bajarish mumkin. Masalan:
|