Korotkodul

Физика_Вычисление_Летучка

Nov 19th, 2021 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. /******************************************************************************
  2.  
  3. Online C++ Compiler.
  4. Code, Compile, Run and Debug C++ program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <iostream>
  10. #include <cmath>
  11. using namespace std;
  12. using ld = long double;
  13. int main()
  14. {
  15. ld ans;
  16. ld ro = 1.293;
  17. ld Na = 6.02 * pow(10, 23);
  18. ld mu = 29 * pow(10, -3);
  19. ld n = ro / mu * Na;
  20. //cout<<"n = "<<n<<'\n';
  21. ld T = 273;
  22. ld R = 8.31;
  23. ld phi = 0.5;
  24. ld Ph = 23000;
  25. ld P0 = pow(10, 5);
  26. ld A = (n * R * T);
  27. ld B = Na * (P0 - phi*Ph);
  28. ld C = P0 / (phi * Ph);
  29. ans = A/B*C;
  30. cout<<"ans = "<<ans<<'\n';
  31. }
  32.  
Add Comment
Please, Sign In to add comment