Advertisement
Guest User

lab 6

a guest
Nov 6th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.45 KB | None | 0 0
  1. #a = sym('a');
  2. #b = sym('b')
  3. syms a b;
  4. x = a+3*a+2*b^2-4*b+b^2;
  5. #y = a^2-b^2;
  6. #disp(factor(y));
  7. f = @ (x) sin(x)+2*x;
  8. disp(f(5));
  9. disp(f(0.25));
  10. disp(feval(f,pi/3));
  11. disp(f(4:2:24));
  12. f1 = (diff(f(x)));
  13. f2 =(diff(diff(f(x))));
  14. l1 =(int(f(x)));
  15. l2 =(int(f(x),0,1));
  16. l3 = (quad(f,0,1));
  17. ezplot(f,[0,10]);
  18.  
  19. syms x;
  20. c = @(x) [2*cos(x),2*sin(x)];
  21. c1 = diff(c(x));
  22. disp(c1);
  23. c2 = diff(diff(c(x)));
  24. disp(c2);
  25. norma = norm(c1);
  26. disp(norma);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement