fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. double w = -0.00161579;
  5. double rho = -3.23158e-05;
  6. double Igrad = 0.0004;
  7. const double gamma = 0.02;
  8.  
  9. w = w - rho * gamma / Igrad;
  10.  
  11. std::cout << w << std::endl;
  12. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
-2.1684e-19