Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  min
Language: C/C++
Code:
#include <iostream>
#include<math.h>
using namespace std;

int main()
{
setlocale(LC_ALL, "Russian");
double x, a, z = 0, z1 = 0, z2 = 0;
cout<< "Enter x,a\n";
cin>>x>>a;
cout<<"x="<<x<<"\n";
cout<<"a="<<a<<"\n";
z = atan(exp(x)/100);
cout<<"z="<<z<<"n";
z1 = a*sqrt(x)+(sin(x-pow(a,2)))/fabs(x);
cout<<"z1="<<z1<<"n";
z2=log(fabs(pow(x-a,1/3)));
cout<<"z2="<<z2<<"n";
if(z>z1) z=z1;
if(z>z2) z=z2;
cout<<"minimum = "<<z<<"n";
char st;
cin>>st;
return 1;
}
     
          
          
          
          
          
Comments: