1-Topshiriq. a) u= funksiya yordamida dasturini tuzing.
Dasturi: float u(int x)
{return (pow(sin(x),3)+pow(cos(x),3)+tan(x*x))/(pow((2*sin(x)+x*x*cos(x)*cos(x)),1/3));}
int main() {float x; cin>>x; cout<<"u="< b) Z= funksiya yordamida dasturini tuzing.
Dasturi: float Z(float x, float a, float b)
{return pow((a*pow(x,3)+b*pow(x,2/3)*cos(x)*cos(x)+1/x),a);}
int main(){float x,a,b; cin>>x>>a>>b; cout<<"Z="< 2-Topshiriq. a= , b= ,x=3,981,y=-1,625,z R
Dasturi: float a(float x, float y) {return pow(2,-x)*sqrt(x+pow(fabs(y),1/4));}
float b(float x, float z){return pow(exp(x-1/sin(z)),1/3);}
int main() {float x=3.981,y=-1.625; float z; cin>>z;
cout<<"a="< 3-Topshiriq. Berilgan koeffisient va o’ng tomon qiymatlarida tenglamalar sistemasining determinant noldan farqli deb hisoblab sistema yechimini toping. Dasturi:
float x(float a1,float b1,float c1,float a2,float b2,float c2)
{return (b1*c2-b2*c1)/(a1*b2-a2*b1);}
float y(float a1,float b1,float c1,float a2,float b2,float c2)
{return (a1*c2-a2*c1)/(a1*b2-a2*b1);}
int main(){float a1,a2,b1,b2,c1,c2; cin>>a1>>b1>>c1; cin>>a2>>b2>>c2;
cout<<"x="< 4-Topshiriq. 1 yanvar seshanba bo’lib hafta kunlari quyidagicha nomerlangan bo’lsa, 1-dushanba, … , 7- yakshanba bo’lsa, berilgan
K(1-365) butun sonini yilning kuni deb hisoblab qaysi kunga to’g’ri kelishini toping. Dasturi:
float a(int n)
{return n%7;}
int main()
{int n; cin>>n;
switch (n)
{case 1: cout<<"dushanba"; break;
case 2: cout<<"seshanba"; break;
case 3: cout<<"chorshanba"; break;
case 4: cout<<"payshanba"; break;
case 5: cout<<"juma"; break;
case 6: cout<<"shanba"; break;
case 0: cout<<"yakshanba"; break;}} Natija:
a) ni ikkita amal bilan. Dasturi:
int y(int a)
{return a*pow(a,3);}
int main()
{int a; cin>>a; cout<<"y="<