Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main ()
- {
- double x;
- cout.setf(ios::scientific);
- cout.precision(4);
- cout << "Podaj x: " << endl;
- cin>>x;
- if ( (x<-9.5) || (x>-1) and (x<1) || (x>4))
- {
- cout<<"f(x) nieokreslona." <<endl;
- }
- else
- {
- cout << "Funkcja f(x) dla wartości "<<x<<" przyjmuje wartosc: ";
- cout << (log(4-x)+sqrt(pow(x,2)-1)+pow(x+9.5, 0.25))<<endl;
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement