fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <limits>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double G, res, x = std::numeric_limits<double>::quiet_NaN();
  9.  
  10. res = ( G = 8,5*exp(-2*x)+((5*(x+4)+log(fabs((x-0,2))))/(x + 2)*(x-0,6)) );
  11.  
  12. cout << G << '\n';
  13. cout << res << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 4324KB
stdin
Standard input is empty
stdout
8
nan