8-laboratoriya ishi Mavzu: Matlabda simvolli hisoblashlarni bajarish. Laboratoriya ishining maqsadi


Download 20.83 Kb.
Sana26.05.2020
Hajmi20.83 Kb.
#110370
Bog'liq
Muhsinova Z 202-g 8-amaliy


8-laboratoriya ishi

Mavzu: Matlabda simvolli hisoblashlarni bajarish.

Laboratoriya ishining maqsadi:

MatLab dasturida simvolli hisoblashlarni bajarishni o’rganish. Ko’rsatma asosida simvolli hisoblashlarga doir topshiriqlarni bajarish.



Laboratoriya ishini bajarish tartibi:

  1. Nazariy qism

  2. Berilgan topshiriqning bajarilish qismi

    1. Laboratoriya topshirig’i mazmuni

    2. Laboratoriya ishining bajarilishi

  3. Xulosa

  4. Adabiyotlar



1. Nazariy qism

Simvolli hisoblashlar deganda matematik va boshqa amallarni sonlarga asoslanmagan holda, faqatgina ifodalarni qayta ishlashni tushunamiz. Jumladan ifodalarni soddalashtirish, ko’paytmalarni yoyish, ko’paytuvchilarga ajratish, hosila va integral olish, ifodalarni qo’shish ayirish, va hokazo.

MatLabda simvolik hisoblashlarni amalga oshirish uchun Symbolic kutubxonasidan foydalaniladi. Agar Symbolic kutubxonasi kompyuterga o’rnatilgan

MatLab dasturida mavjud bo’lmasa, biz bu hisoblashlarni amalga oshira olmaymiz.

Matlabda o’zgaruvchini e’lon qilishda syms kalit so’zidan foydalaniladi. Masalan:

>> syms x y z

Endi bu o’zgaruvchilar yordamida matematik ifodalarni yozishimiz mumkin.

>> syms x y z

>> x^2+2*y-z^3

ans = x^2+2*y-z^3

Simvolik amallarni va sonli amallarni MatLab turlicha bajaradi.

Masalan:

>> 2/5

ans =


0.4000 >> sym(2)/sym(5) ans =

2/5


Matematik ifodalar ustida amalga oshiriladigan bir qancha amallar:

>> syms x y a

>> exp1 = x-3*y;

>> exp2 = 3*a+x; >> sqrt(exp1) ans =

(x-3*y)^(1/2) >> log(exp2) ans = log(3*a+x) >> 3*exp1*exp2 ans =

(3*x-9*y)*(3*a+x)

Matematik ifodalarni ko’paytuvchilarga ajratish funksiyasi

>> syms a b

>> exp1 = x^2-5*x+6;

>> exp2 = a^3-3*a^2*b+3*a*b^2-b^3;

>> factor(exp1) ans =

(x-2)*(x-3) >> factor(exp2) ans =

(a-b)^3

Ko’paytmani yoyish funksiyasi >> exp1 = (x-2)^4;

>> exp2 = (a-b)*(a+3*b)*(2*a+5)*(a-7)*a*b;

>> expand(exp1)

ans =

x^4-8*x^3+24*x^2-32*x+16



>> expand(exp2)

ans =


2*a^5*b-9*a^4*b-35*a^3*b+4*a^4*b^2-18*a^3*b^2-70* a^2*b^2-6*a^3*b^3+27*a^2*b^3+105*a*b^3

Berilgan topshiriqning bajarilish qismi

1-topshiriq. expand va simplify komandalaridan foydalanib, ifodani soddalashtiring

9. (x+10)*(x-4)*(x+2)

> q:=(x+10)*(x-4)*(x+2);

> expand(q);



> restart;

> e:=(x+10)*(x-4)*(x+2);

> simplify(e);





2-topshiriq. Ifodani ko’paytuvchilarga ajrating

9.x^3+81/10*x^2-5097/100*x+403/8

> k:=x^3+81/10*x^2-5097/100*x+403/8;



> factor(k);





Xulosa:

Ushbu laboratoriya ishida MatLab matematik paketida ifodalarni soddalashtirish, qavslarni ochishni expand va simplify komandalaridan foydalanib, ifodalarni soddalashtirdik



Foydalanilgan adabiyotlar

  1. MATLAB 7.*/R2006/R2007 o’quv qo’llanma.:M.2008.

  2. Mathematica. Wolfram, Stephen, 1959.

  3. Dyakonov V. P., Abramеnkova I. V., Kruglov V. V. MATLAB 5 s pakеtami 4. rasshirеniy. – M.: Nolidj, 2001.

  1. Dyakonov V. P. MATLAB 6.5 SP1G`7 Q Simulink 5G`6 v. Obrabotka signalov I proеktirovaniе filtrov. – M.: Solon_R, 2005.

  2. Dyakonov V. P. MATLAB 6.5 SP1G`7 Q Simulink 5G`6 v. Rabota s izobrajе_ niyami i vidеopotokami. – M.: Solon_R, 2005.

  3. Dyakonov V. P., Kruglov V. V. MATLAB 6.5 SP1 7G`7 SP1G`7 SP2 QSimulin

  4. 5G`6 v. Instrumеnto` iskusstvеnnogo intеllеkta i bioinformatiki. – M.: Solon_ PRЕSS, 2006 .

  5. Dyakonov V. P. VisSim+Mathcad+MATLAB. Vizualnoе matеmatichеskoе modеlirovaniе. – M.: Solon_Prеss, 2004.

  6. Potеmkin V. G. Sistеma MATLAB: Spravochnoе posobiе. – M.: Dialog_ MIFI, 1997.

  7. T.Dadajonov, M.Muhitdinov. MATLAB asoslari.”Fan nashriyoti”. 2008.

Download 20.83 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling