Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.02 KB | None | 0 0
  1. procedure calc1;
  2. begin
  3.   v := u + (a * t);
  4.   if u > 0 then
  5.     s := u * t + (a * tsq) / 2
  6.   else
  7.     s := (a * tsq) / 2;
  8. end;
  9.  
  10. procedure calc2;
  11. begin
  12.   vsq := usq + (2 * a * s);
  13.   v := sqrt(vsq);
  14.   t := (v - u) / a;
  15. end;
  16.  
  17. procedure calc3;
  18. begin
  19.   v := 2 * s / t - u;
  20.   a := (v - u) / t;
  21. end;
  22.  
  23. procedure calc4;
  24. begin
  25.   u := v - a * t;
  26.   s := (u + v) / 2 * t;
  27. end;
  28.  
  29. procedure calc5;
  30. begin
  31.   usq := vsq - (2 * a * s);
  32.   u := sqrt(usq);
  33.   t := (2 * s) / (u + v);
  34. end;
  35.  
  36. procedure calc6;
  37. begin
  38.   u := 2 * s / t - v;
  39.   a := (v - u) / t;
  40. end;
  41.  
  42. procedure calc7;
  43. begin
  44.   u := (s / t) - (a * t / 2);
  45.   v := 2 * s / t - u;
  46. end;
  47.  
  48. procedure calc8;
  49. begin
  50.   a := (v - u) / t;
  51.   s := (u + v) / 2 * t;
  52. end;
  53.  
  54. procedure calc9;
  55. begin
  56.   if ((v - u) > 0) or ((v - u) < 0) then
  57.     a := (vsq - usq) / s / 2
  58.   else
  59.     a := 0;
  60.   t := (2 * s) / (u + v);
  61. end;
  62.  
  63. procedure calc10;
  64. begin
  65.   s := (vsq - usq) / a / 2;
  66.   t := (v - u) / a;
  67. end;
  68.  
  69. procedure calc11;
  70. begin
  71.   showmessage('Insufficient Data');
  72. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement