1. Amaliy ish. Matlab muhitining hisoblash imkoniyatlari
Misol
y = 2xsin x va z = 3x2 + cos x funksiya qiymatlarini x[–1,5; 1,5] oraliqda 0,5 qadam bilan hisoblang.
Kiritish tartibi:
>> x=–1.5:0.5:1.5
>> y=2*x.*sin(x)
>> z=3*x.^2+cos(x)
Quyidagi natijani olamiz:
x=–1.5000 –1.0000 –0.5000 0 0.5000 1.0000 1.5000
y= 2.9925 1.6829 0.4794 0 0.4794 1.6829 2.9925
z= 6.8207 3.5403 1.6276 1.0000 1.6276 3.5403 6.8207
Mustaqil ishlash uchun topshiriqlar
I. a=3, b=2,6 da quyidagi ifodaning qiymatini hisoblang:
1) 2) 3) 4)
5) 6) 7)
8) 9) 10)
11) ; 12) 13)
a=3, b=2,3 da quyidagi ifodaning qiymatini hisoblang:
14) 15) f=x+cos25π-7sin3π;
a=-3, b=2 da quyidagi ifodaning qiymatini hisoblang:
16) d=b(cos3x+e(b+3)); 17)
II. Berilgan oraliqda f, g, z, f+g funksiya qiymatlarini hisoblang:
1) x[–2; 2], h=0,2, f=|x-1|2, g=cos2(3x), z=2x3-3x2+1;
2) x[–4; 3], h=0,6, f=ln|x+5|, g=sinx+cos(2x), z= ;
3) x[2; 12], h=1, f=lgx+1, g=3|x-3|, z=
Do'stlaringiz bilan baham: |