Bajardi: Ikromov Akobir


Download 234.68 Kb.
Sana04.11.2023
Hajmi234.68 Kb.
#1746895
Bog'liq
AKosh coding2



TOSHKENT AXBOROT TEXNALOGİYALARİ UNİVERSİTETİ

Dasturlash fanidan


Amaliy ish 2

BAJARDI:Ikromov Akobir

1-misol

#include
#include

using namespace std;


int main()
{double x,y,a=M_PI/4,b=M_PI,n=10,h;
x=a;
h=(b-a)/n;
while(x<=b)
{
y=cos(1./x);
cout<<"x= "<cout<<"y= "<if(x=b)break;
}

return 0;


}

2-misol


b)#include
#include

using namespace std;


int main()
{float n,s=0;
for(int R=1;R<=9;R++)
{
s=s+(R+1)/(pow(R,5)+5*R+1.2);
}
cout<<"S= "<return 0;
}

a)#include


#include

using namespace std;


int main()
{float s=1;
for(int n=1;n<=10;i++)
{
s*=(pow(i,4)+i*i+12)/sqrt(i*i*i+exp(-i));
}
cout<<"S= "<return 0;
}

c)
#include


#include

using namespace std;


int main()
{float s=0;
for(int i=1;i<=15;i++)
{int p=1;
for(int m=1;m<=11;m++)
{
s=s+exp(sqrt(i*i+pow(m,(1-i))))+(i*i+11)/(pow(m,4)+pow(i,-m));
s=s+p;
}
}

cout<<"S= "<
return 0;
}

3-misol

#include
#include
#include
#define pi 3.141592
using namespace std;
int main()
{
double x, y, a, b, n = 35, h;
a = 0.1;
b = 0.8;
h = (b - a) / n;
x = a;
while(x <= b)
{
y = -0.5*log(1-2*x*cos(M_PI/3));
cout << "x = " << x << setw(8) << "\ty = " << y << endl;
x += h;
}
return 0;
}

Download 234.68 Kb.

Do'stlaringiz bilan baham:




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