Advertisement
luizaspan

Historico octave sym

Apr 18th, 2016
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 1.17 KB | None | 0 0
  1.  1008 syms r(t) theta(t) m g L
  2.  1009 L = 2*m*diff(r)^2
  3.  1010 L = 2*m*diff(r)^2 + m/2*r^2*diff(theta)^2-g*r*m(3-cos(theta))
  4.  1011 L = 2*m*diff(r)^2 + m/2*r^2*diff(theta)^2-g*r*m(3-(theta))
  5.  1012 L = 2*m*diff(r)^2 + m/2*r^2*diff(theta)^2- g*r*m*(3-cos(theta))
  6.  1013 L
  7.  1014 man diff
  8.  1015 help diff
  9.  1016 diff(L, theta)
  10.  1017 diff(L)
  11.  1018 diff(L, theta)
  12.  1019 theta
  13.  1020 diff(L, theta, t)
  14.  1021 diff(L, theta)
  15.  1022 diff(L, t, theta)
  16.  1023 who
  17.  1024 L
  18.  1025 diff(L, theta, r, theta)
  19.  1026 L
  20.  1027 L = 2*m*diff(r)^2 + m/2*r^2*diff(theta)^2- g*r*m*(3-cos(theta))
  21.  1028 clear
  22.  1029 syms m g theta r L
  23.  1030 syms t
  24.  1031 theta = sym('theta(t)')
  25.  1032 r = sym('r(t)')
  26.  1033 L = 2*m*diff(r,t)^2 + m/2*r^2*diff(theta,t)^2- g*r*m*(3-cos(theta,t))
  27.  1034 diff(diff(L,diff(theta)),t)
  28.  1035 diff(diff(L,diff(theta)),t)
  29.  1036 diff(diff(L,diff(theta)),t) - diff(L, theta)
  30.  1037 diff(diff(L,diff(theta,t)),t) - diff(L, theta)
  31.  1038 simplify(diff(diff(L,diff(theta,t)),t) - diff(L, theta))
  32.  1039 diff(L,diff(theta,t))
  33.  1040 diff(L,theta)
  34.  1041 diff(diff(L,diff(theta,t)),t)
  35.  1042 sym('diff(diff(L,diff(theta,t)),t) = 0'
  36.  1043 )
  37.  1044 sym('diff(diff(L,diff(theta,t)),t) = 0')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement