fork(1) download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. long double funkcja1(long double x)//f-cja którą muszę policzyć
  6. {
  7. return ((0.518*223.0)/(x-0.0018707))-(12.612620/(x*(x+0.0012707)*sqrt(223.0)))-65000.0;
  8. }
  9.  
  10. int main()
  11. {
  12. cout<<funkcja1(-2)<<endl;
  13. cout<<funkcja1(0.00258516)<<endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
-65057.9
11948.8