expressing the complex function
clear i
syms x t
U=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
series(x,t)=sym(zeros(1,1));
U(1)=exp(i*x);
alpha=1;
for k=1:2
A(1)=0;
for r=1:k
for s=1:r
A=A+U(s)*U(r-s+1)*U(k-r+1);
end
end
U(k+1)=simplify(i*(gamma(alpha*(k-1)+1)/gamma((alpha*(k))+1))*(sym(1/2)*diff(U(k),x,2)))
end
for k=1:3
series(x,t)=simplify(series(x,t)+U(k)*power(t,k-1))
end
series i obatin is form of the complex function and want to separte the real and imigimary part of the complex number But the command Re(series) does work . I want to plot the graph of the real part and imaginary part separtely of the series . For that i use the command expand (series) but it is also not workingclear i
syms x t
U=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
series(x,t)=sym(zeros(1,1));
U(1)=exp(i*x);
alpha=1;
for k=1:2
A(1)=0;
for r=1:k
for s=1:r
A=A+U(s)*U(r-s+1)*U(k-r+1);
end
end
U(k+1)=simplify(i*(gamma(alpha*(k-1)+1)/gamma((alpha*(k))+1))*(sym(1/2)*diff(U(k),x,2)))
end
for k=1:3
series(x,t)=simplify(series(x,t)+U(k)*power(t,k-1))
end
series i obatin is form of the complex function and want to separte the real and imigimary part of the complex number But the command Re(series) does work . I want to plot the graph of the real part and imaginary part separtely of the series . For that i use the command expand (series) but it is also not working clear i
syms x t
U=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
series(x,t)=sym(zeros(1,1));
U(1)=exp(i*x);
alpha=1;
for k=1:2
A(1)=0;
for r=1:k
for s=1:r
A=A+U(s)*U(r-s+1)*U(k-r+1);
end
end
U(k+1)=simplify(i*(gamma(alpha*(k-1)+1)/gamma((alpha*(k))+1))*(sym(1/2)*diff(U(k),x,2)))
end
for k=1:3
series(x,t)=simplify(series(x,t)+U(k)*power(t,k-1))
end
series i obatin is form of the complex function and want to separte the real and imigimary part of the complex number But the command Re(series) does work . I want to plot the graph of the real part and imaginary part separtely of the series . For that i use the command expand (series) but it is also not working complex function MATLAB Answers — New Questions