Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- double Razv(double x){
- double z;
- if(x>=0.0 and x<=6.0){
- z=sin(x)*sin(x);
- double temp = tan(x);
- double temp1 = sqrt(x*x*x);
- if(temp<z) z = temp;
- if(temp1<z) z = temp1;
- }
- if(x>6.0){
- z=exp(-x);
- double temp = 2*sin(x);
- double temp1 = cos(x)*cos(x)*cos(x);
- double temp2 = log(x);
- if(temp>z) z = temp;
- if(temp1>z) z = temp1;
- if(temp2>z) z = temp2;
- }
- if(x<0.0) z = exp(-3*x);
- return z;
- }
- int main(){
- double x,z;
- cin >> x;
- z = Razv(x);
- cout << z;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement