Guruh talabasi Muhammadov Og’abek 1-jadval 3-labaratoriya ishi


Download 76.65 Kb.
Sana05.01.2022
Hajmi76.65 Kb.
#208919
Bog'liq
3-labaratoriya ishi


311-20 guruh talabasi

Muhammadov Og’abek



1-jadval

3-labaratoriya ishi

3-labaratoriya topshiriqlari

Matematik funksiyalarga oid algoritmlar

13-variyant.

№1.


#include #include

using namespace std;

int main()

{


float x, y; cout<<"x="; cin>>x;

if(x>0)

{

y=pow(sin(2*x), 2)-pow(cos(x), 2);



} else if(x<=0.3)

{


y=1./(pow(x, 2)-sqrt(x));

} else cout<<"Yechimi mavjud emas"<

cout<<"Y="<

}

X=0.5 qiymat





X=0.7 qiymat

№2.


Berilgan x uchun quyidagi ifodalarning qiymatlari o’sish tartibida chop etilsin. Ifoda:

1+|x| va (1+x2)x.



#include

#include

using namespace std;

int main()

{

float x, y, z;

cout<<"x="; cin>>x;

y=1+fabs(x);

z=pow((1+pow(x, 2)), x);



if(ytanlash operatori

#include

#include

#include

using namespace std;

int main()

{


int a, h, c; float S;

char x;

cout<<"Teng yonli to'g'ri burchakli uchburchak"<>"<>"<>"<>"<

cout<<"Yuqoridagi qaysi paramtr orqali ifodalamoqchisiz?"<>x; switch(x)

{

case 'a': cout<<"Katet orqali ifodalaymiz"<

cout<<"c="; cin>>c;;

cout<<"Katet a="< break;

case 'h': cout<<"Balandlik orqali ifodasi"< break;

case 'S': cout<<"Yuza orqali ifodalash"<

}

return 0;



}

Download 76.65 Kb.

Do'stlaringiz bilan baham:




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