Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. w=@(x)((cos(4.*x)).*x.^(3./2) -4*(x-10));
  2. px=linspace(5,20);
  3. plot(px,w(px));
  4. hold on
  5. X=fzero(@jestes,8);
  6.  
  7. for n=5:20
  8. X(n-4)=fzero(@jestes,n);
  9. end
  10. Xkoniec=unique(X);
  11. plot(Xkoniec,0,'ro');
  12.  
  13.  
  14. A jestes to taka funkcja
  15. function G = jestes(x)
  16. G=[((cos(4.*x)).*x.^(3./2) -4*(x-10))];
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement