1.2.Chiziqli tarkibli hisoblash jarayonini C++ tilida dasturi.
#include
#include
using namespace std;
int main()
{
cout<<"1-misol"<
double x,a,y,w,b;
cout<<"x="; cin>>x;
cout<<"a="; cin>>a;
count<<’’b=’’;cin>>b;
w=sqrt(x*x+b)-b*b*pow(sin(x+a),3)/x;
y=pow((cos(pow(x,3)2),x)-x/sqrt(a*a+b*b);
cout<<"w="<
cout<<"y="<
return 0;
}
2.1. Tarmoqlanuvchi tarkibli hisoblash jarayonini blok sxema ko`rinishi.
ha
yo`q
ha
yo`q
2.2.Tarmoqlanuvchi tarkibli hisoblash jarayonini C++ tilida dasturi.
#include
#include
using namespace std;
int main()
{
cout<<''2-misol''<
double y,x,a;
cout<<''a='';cin>>a;
cout<<''x='';cin>>x;
if(x<0.4)y=ln(e,x)+cos(x);
else
if(x=0.4)y=pow(cos(x),2);
else
if(x>0.4)y=pow(-a*x,e)*cosa*x;
cout<<''y=''<
return 0;}
3.1.Differensial tenglamani Eyler usuliga mos blok sxema ko`rinishi.
F(x,y)= e-y - ex -0.1; oraliq [-1;1] ; yо =0.5; h=0.1
e-y - ex -0.1
3.2. Differensial tenglamani Eyler usuliga mos C++ tilida dasturi.
#include
#include
using namespace std;
double F(double x,double y)
{
return ln(e,(-y)))-ln(x)-0.1;
}
int main()
double a=-1;double b=1;double h=0.1;
double n=(b-a)/h;
double x[(int)n];
double y[(int)n];
x[0]=a;y[0]=0;
for(int i=1;i<=n;i++)
x[i]=a+i*h;
y[i]=y[i-1]+h*f(x[i-1],y[i-1])
for(int i=0;i<=n;i++)
cout<<''x[''<
cout<
cout<<''y["<
return0;
Foydalanilgan adabiyotlar
1. Introduction to Software for Chemical engineers. Mariano Martín Martín. CRC Press is an imprint of the Taylor & Francis Group, an information business. London, New York. 2010.
|
2. An Intraduction to spreadsheet optimization using MS Excel Solver. Lancaster university.
|
3. CAY HORSTMAN C++ dasturlash tili. (TATU tarjimasi).
|
4. Mathcad 15\ Mathcad Prime 1.0 Санкт-Петербург. 2012.
|
5. Axborot-kommunikatsiya texnologiyalari. Toshkent. 2012.
|
6. Informatika va axborot texnologiyalari. Toshkent. 2012.
|
7. S. S. G‘ulomov, B. A. Begaliyev “Informatika va axborot texnologiyalari” Toshkent., FAN., 2010 yil.
Internet saytlar.
1. Ziyonet.uz
2. www.intuit.ru
3. dastur.uz
Do'stlaringiz bilan baham: |