Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. f = @(x) asin(2.*sin(x)) + sqrt(cos(x).*(exp(x))) + sqrt(-x).*(abs(x).^(x/log(x + 1)))
  2. x = -2*pi:0.0001:2*pi
  3. y = f(x)
  4. U = real(y)
  5. V = imag(y)
  6. cla;
  7. hold on;
  8. plot(x,U,'-','Color',[.1 .7 .7],'LineWidth',3)
  9. plot(x,V,'-.','Color',[.1 .4 .1],'LineWidth',3)
  10. legend('Im(f(x))','Re(f(x))',1)
  11. disp(f(3.4))
  12. disp(f(5.0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement