Ekran ko΄rinishi:
№1.2 Topshiriq. Berilgan funktsiyani MathСad tizimida hisoblang.
2
|
F=ln(1+x) xy+
|
x=5.7
y=7.31
|
Bajarilishi:
Ekran ko΄rinishi:
№1.3 Topshiriq. Berilgan tenglamalar sistemasini MathСad tizimida grafigini chizing. (aniqlik h=0.1 qadam)
3
|
tg2 (x3+3.5)
sin3( + )2 +
|
x≤3.6
3.6≤x<7
x≥7
|
Topshiriq №2.1 MatLAB dasturida dekart koordinatalar sistemasida quyidagi elementar funksiya grafikliarini yasang.
1
|
u(x)=sin(ln(x+1))
v(x)=cos(ln(x+1))
|
x [0.2 ]
|
Bajarilishi:__Natija'>Bajarilishi:
|
Natija:
|
>>x=[0:0.2:pi];
>>u=sin(log(x+1));
>>v=cos(log(x+1));
>>plot(x,u,x,v)
|
|
Ekran ko΄rinishi:
Topshiriq №2.2 Fazoda quyidagi funksiya grafigini yasang.
2
|
Z(x,y)=(1+xy)(3-x)(4-y)
|
x [0.3] y [0.4]
|
Bajarilishi:
|
Natija:
|
>>[x,y]=meshgrid(0.3:0.01:0.4);
>>z=(1+x*y)*(3-x)*(4-y);
>>mesh(x,y,z)
|
|
Ekran ko΄rinishi:
Topshiriq №2.3. Matritsalarning determinantini, teskarisini hisоblаsh dаsturi tuzing.
Bajarilishi:
|
Ekran ko΄rinishi:
|
Aij=[5 3 3 -4;-6 -4 2 17;12 26 1 5;5 8 97]
Aij=
5 3 3 -4
-6 -4 2 17
12 26 1 5
5 8 9 7
>> det(Aij)
ans =
5.3370e+03
>> inv(Aij)
ans =
0.6951 0.2706 0.0530 -0.2977
-0.3487 -0.1460 0.0109 0.1475
-0.2237 -0.1254 -0.0613 0.2203
0.1896 0.1347 0.0285 -0.0963
|
|
Topshiriq №3.1.Quyida berilgan misollarni blok semasini va C++da dasturini tuzing.
1
|
F=ln(1+x)-xy+ ;
|
x=5.7;
y=7.31;
|
Boshlandi
tamom
F
F=ln(1+x)-xy+ ;
X=5.7; y=7.31;
C++ da chiziqli dastur tuzing va natijasini oling;
F=ln(1+x)-xy+ ;
|
X=5,7; y=7,31;
|
1. #include
2. #include
3. using namespace std;
4. int main()
5. { float x,y,f;
6. x=5,7;
7. y=7,31;
8. f=log(1+x)-x*y+exp(2)*y/2;
9. cout<<"f="< |
Javob:f=-7.34654
|
Topshiriq №3.2 tarmoqlanuvchi dastur tuzing va natijasini oling;
Boshlandi
x
y=
x 3,6
ha yo΄q
x
ha yo΄q
y=
y=
y
tamom
C++ da tarmoqlanuvchi dastur tuzing va natijasini oling.
y=
|
x 3,6;
3,6
x
|
#include
#include
using namespace std;
int main()
{double x,y;
cout<<"x=";
cin>>x;
if(x<3.6) {y=exp(1+abs(2.6+log(pow(x,3))));} else
if(x>7) {y=sin(sqrt(x)+2.7/x);} else
{y=tan(2)+(pow(x,3)+3.5);}
cout<<"y="< |
Javob: x=4
y=65.315
|
Javob:x=6
y=217.315
|
Javob:x=6.5
y=275.94
|
Ekran ko‟rinishi:
Topshiriq №3.3 C++ da tarmoqlanuvchi dastur tuzing va natijasini oling.
Boshlandi
tamom
p
P=P+
k=0..10
P=0
k
Do'stlaringiz bilan baham: |