Advertisement
Guest User

lab7

a guest
Nov 13th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.90 KB | None | 0 0
  1. syms t;
  2. #x = @(t) t*cos(t);
  3. #y = @(t) t*sin(t);
  4.  
  5. #xd =@(t) diff(x(t));
  6. #yd =@(t) diff(y(t));
  7. #g = ezplot(xd(t),yd(t));
  8. #set(g,'Color','r');
  9.  
  10. #xdd = @(t) diff(xd(t));
  11. #ydd = @(t) diff(yd(t));
  12. #g = ezplot(xdd(t),ydd(t));
  13. #set(g,'Color','r');
  14. #x = @(t) 3*cos(t)^3;
  15. #y = @(t) 2*sin(t)^3;
  16. #g = ezplot(x(t),y(t));
  17. #set(g,'Color','b');
  18. #x = @(t) (sin(t)*(e^cos(t)-2*cos(4*t)+sin(t/12)^5));
  19. #y = @(t) (cos(t)*(e^cos(t)-2*cos(4*t)+sin(t/12)^5));
  20. #g = ezplot(x(t),y(t));
  21. #set(g,'Color','b');
  22.  
  23. x = @(t) 4+2*cos(t);
  24. y = @(t) 1+4*sin(t);
  25. c = @(t) [x(t),y(t)];
  26. v = [diff(x(t)),diff(y(t))];
  27. a = [diff(x(t),2),diff(y(t),2)];
  28. ezplot(x(t),y(t));
  29. k = @(t) det([v;a])/sqrt(sum(v.^2))^3;
  30. disp("Curbura lui e in c(t)");
  31. disp(k(t));
  32. R= @(t) 1/abs(k(t));
  33. disp("raza de curbura in c(t)");
  34. disp(R(t));
  35. t0=pi/3;
  36. disp("Curbura in c(pi/3)");
  37. disp(subs(k,t,t0));
  38. disp("raza de curbura in c(pi/3)");
  39. disp(subs(R,t,t0));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement