Advertisement
dllbridge

Untitled

Nov 24th, 2023
601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.78 KB | None | 0 0
  1.  
  2. #include   <stdio.h>
  3.  
  4.  
  5.  
  6.  
  7. float fMass  = 1000.00,  //  Полная масса модуля
  8.       fGMoob =    1.62,  // 9.81,//
  9.       fV     =    0.00,
  10.       fVGaz  = 3000.00;  //  Метры в сек.
  11.  
  12.  
  13. float VchangeGravi(float t);
  14.  
  15.  
  16.  
  17. ////////////////////////////////////////////////////
  18. int main()                                        //
  19. {
  20.  
  21.     Vchange(6.00);
  22.    
  23.     printf("V result = %.2f", fV);
  24.  
  25. }
  26.  
  27.  
  28. ///////////////////////////////////////////
  29. float VchangeGravi(float t)
  30. {
  31.    
  32.     fV = fV - (fGMoob * t);
  33.  
  34. return fV; 
  35. }
  36.  
  37.  
  38.  
  39. ///////////////////////////////////////////
  40. float VchangePulse(float m)              //  За 1 секунду
  41. {
  42.    
  43.       float p = m * fVGaz;
  44.      
  45.        fMass -= m;             //fMass = fMass - m;      
  46. return p /  fMass;  
  47. }
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement