Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = @(x) asin(2.*sin(x)) + sqrt(cos(x).*(exp(x))) + sqrt(-x).*(abs(x).^(x/log(x + 1)))
- x = -2*pi:0.0001:2*pi
- y = f(x)
- U = real(y)
- V = imag(y)
- cla;
- hold on;
- plot(x,U,'-','Color',[.1 .7 .7],'LineWidth',3)
- plot(x,V,'-.','Color',[.1 .4 .1],'LineWidth',3)
- legend('Im(f(x))','Re(f(x))',1)
- disp(f(3.4))
- disp(f(5.0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement