Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Input_Parameters; % contains the values of the variables used in the formula
  2. syms theta(t)
  3. r = R*cos(theta);
  4. mu0 = 1.2566*10^-6;
  5. f1 = @(a,c) a*(a^2+(r-c).^2).^(-1/2)-log(sqrt(a^2+(r-c).^2)+a);
  6. alpha = mu0 * lV * m * 0.5 *sin(theta)*R .*(f1(a2,c2)-f1(a2,c1)-f1(a1,c2)+f1(a1,c1));
  7. I = 1 - exp (-(Rcoil+Rload)/Lcoil);
  8. k = (R/(Rcoil+Rload));
  9. ode = ((diff(theta,t)^2)*(M*R^2 - (k*I(alpha^2)))+ diff(theta,t)* R * M*g*sin(theta))== 20;
  10. cond = theta(0) == pi;
  11. thetaSol(t) = dsolve(ode,cond);
  12. OM = diff(theta,t)`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement