daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. double v0;
  2.         cin >> v0;
  3.         double vx, vy, m0;
  4.         cin >> vx >> vy >> m0;
  5.         double dt;
  6.         int x1 = 0;
  7.         int y11 = 301;
  8.         while (m > 0.2 * m0){
  9.             int i = 0;
  10.             dt = 1 / vx;
  11.             x[i] = x1 + vx * dt;
  12.             y[i] = y11 + vy * dt
  13.             m -= (delta m)/ (delta t) * dt;
  14.             vx += (delta m)/ (delta t) * dt / m * vx;
  15.             vy += (delta m)/ (delta t) * dt / m * vx - 9.8 * dt;
  16.             x1 = x[i];
  17.             y11 = y[i];
  18.             i++;
  19.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top