4-mavzu. C++ Chiziqli jarayonlarga dastur tuzish o`quv mashg’ulotining maqsadi
Download 188.56 Kb. Pdf ko'rish
|
- Bu sahifa navigatsiya:
- Savol va topshiriqlar
Dastur ko‘rinishi (C++ tilida):
# include # include int main() { const pi=3.14; float A,B,C,z,k,s,x=6.3,y=1.2; z=(x-y); printf(“%f”,z) ; C=sin(pi-x) ; k=pow(-x,2) ; s=2*pow(10,3); A=abs(pow(C,3)/(sqrt((z*z+exp((x),k)))); B=((sqrt(sin(x))/(cos(x))/(A*log(5)-(cos(x*x)*z)))); printf(“natijalar quyidagi:”); printf(“%f\n”,A); printf(“%f\n”,B); } { arifmetikifodalarC++ dasturlash tilida} #include #include 2 J.B. Dixit. Fundamentals of computer programming and Information texnology. India. 2009 (217-219 betlar) usingnamespace std; void main() { double pi=3.14159265; double x=6.3,y=1.2,a,b; cout<<"Natija :"< b=exp((1/3)*log(sin(pi/3)/cos(pi/3)))/(a*log(2000-cos(x-y)*cos(x-y))); cout<cout<} Savol va topshiriqlar Quyidagilarga konsol ilovada dastur tuzing: 1. y=(a x -a -x )/2+b a ; 2. y=ln(1-x)/(1+x)+c-k, c=3b/4; 3. 3 3 x x y − = , x=b 2; 4. y=(a x -1)/a –a/( a x -1), a=q 2 ; 5. y=log 5 x-1+cos x; 6. y=arctg1/(x-1)+c 2 ; 7. y=((x+4)/(x-4)) x+4 +u; 8. ; 1 1 cos 1 a x x y + − + − = 9. y=(e x -cosx)/x 2 +b, b=4.1; 10. y=(e -x -e x )/sinx+x 7 ; 11. y=cos +ab, a=3.5; 12. y=1/x+1/x 2 +1/x 3 ; 13. d x x y + − = 4 3 3 4 , d=10; 14. y=cosx/x 2 +x 2 /sin 2 x+tgx; 15. y=a(t-sint)+a -t +t -a Foydalanilgan adabiyot J.B. Dixit. Fundamentals of computer programming and Information texnology. India. 2009 (215-319 betlar). Download 188.56 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling