Advertisement
cardel

Untitled

Sep 7th, 2018
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.45 KB | None | 0 0
  1. //Autor: Docente curso métodos númericos
  2. //Fecha: 7 de Septiembre 2018
  3. //Ejemplo de clase
  4. clear all
  5.  
  6. function f=ecuacionParacaidas(g,m,fr,t)
  7.     f = m*g*(1-exp(-fr*t/m))/fr
  8. endfunction
  9.  
  10. g = 9.8
  11. m = 68.1
  12. fr = 12.5
  13.  
  14. // valor-inicial:incremento:valor-final
  15. t = 0:1:20
  16. resultado =ecuacionParacaidas(g,m,fr,t)
  17.  
  18. plot(t,resultado,"r-")
  19. xtitle("Velocidad del paracaidista con respecto al tiempo")
  20. xlabel("Tiempo (s)")
  21. ylabel("Velocidad (m/s)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement