Advertisement
Guest User

Untitled

a guest
Nov 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.42 KB | None | 0 0
  1. clc
  2. syms t;
  3. x=@(t)2+t+t^3;
  4. y=@(t)-t-t^3;
  5. z=@(t)5+t^3;
  6. ezplot3(x(t),y(t),z(t));
  7. v=[diff(x(t)),diff(y(t)),diff(z(t))];
  8. acc=[diff(x(t),2),diff(y(t),2),diff(z(t),2)];
  9. d3=[diff(x(t),3),diff(y(t),3),diff(z(t),3)];
  10. k=det([v;acc])/norm(v)^3;
  11.  
  12. a=input('t=');
  13. d=double(k,t,a);
  14. if(d==0)
  15.     disp('c(t) este varf al curbei');
  16. else
  17.     disp('c(t) nu este varf al curbei');
  18. endif
  19. T=dot(cross(v,acc),d3)/(norm(cross(v,acc))^2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement