RyuuPL

Funkcja z osobnym obliczaniem rownania

Jan 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;///1.21525
  5.  
  6. double liczba(double x)
  7. {
  8. return (sqrt(7)+pow(x,4))/(abs(pow(x,2))+(x+1)/x);
  9. }
  10.  
  11. int main()
  12. {
  13. double x=-1;
  14. for(int i=0; x<0; i++)
  15. {
  16. cout << "Wprowadz x wieksze od 0:" << endl;
  17. cin>>x;
  18. }
  19. cout<<liczba(x)<<endl;
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment