Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int down(float x){
- int n;
- if (pow(x,4)-1<=0 || x+1<=0) n=0;
- else n=1;
- return n;
- }
- float main()
- { float x,a,b,y,h;
- cin>>a>>b>>h;
- for (x=a;x!=b+h;x+=h) {
- switch (down(x))
- {
- case 1:cout<<x<<" :"<<log(pow(x,4)-1)*(log(1+x))<<" "<<endl;break;
- case 0: cout<<x<<" :NOT FOUND"<<endl;break;}
- }
- system ( "pause" );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment