Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. function[hmax, dmax] = trajectory(vel_inicial, angulo)
  3.  
  4. vel_inicial_x = vel_inicial * cos(angulo);
  5. vel_inicial_y = vel_inicial * sen(angulo);
  6.  
  7. gravidade = 9.81;
  8.  
  9. hmax = (vel_inicial_y^2)/(2*gravidade);
  10.  
  11. tempo_para_hmax = vel_inicial_y/g;
  12. tempo_trajetoria = tempo_para_hmax * 2;
  13.  
  14. dmax = vel_inicial * tempo_trajetoria;
  15.  
  16. plot(hmax, dmax)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement