The question gives the following information: Given z=1+3i , what is z^1/4 where arg(z) is in the range: pi/2 < arg(z) < pi I am looking how i would go about using the roots function to solve the problem and how i would find the other roots to generate a figure which shows that all the roots lie on a circle in the complex plane. My code so far without using the roots function:z = 1+3i; Im = imag(z); Re = real(z); Mag = abs(z); theta = atan(Im/Re); %more data of powers n = 1/4; k = 1:4; arg = (theta*n + (2*k*pi)*n) x = cosd(arg); y = 1i*sind(arg); r = Mag.^(n); zn = r.*(x) + r.*(y); zn = zn' Any advice would be greatly appreciated.
MATLAB: How can i use the roots function to show that all the roots of a complex number lie on a circle.
circlecomplexcomplex numberscomplex planefunctionhomeworknumbersrootsroots function
Best Answer