Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given is the programm-piece which draw the image like a coordinate system as=10;

ID: 3139869 • Letter: G

Question


Given is the programm-piece which draw the image like a coordinate system


as=10;

or=0.05*as;

hold on

plot([-as as],[0 0])

plot([0 0],[-as as])

plot([as-or as as-or],[-or 0 or])

plot([-or 0 or],[as-or as as-or])

axis([-(as+1) as+1 -(as+1) as+1])


Now write a program that,

a) asks the user to enter a part of the real-part and transverse(cross)-part of complex number.

b) computes the length l and head-direction-angle of the complex number.

c) shows out a message indicating a complex number, its length and side angle as follows.

for example, if complex number is z=-1-2i, then shows out the message "Complex number -1-2i has length 2.2361 and head-drection-angle -2.0344"

d)draws a red line, represents the complex number a+ib.

e)shows real-part as x-axis and transverse(cross)-part as y-axis

f) name the image as Argand diagram.

h)change thecoordinate system so the size "fit" for complex numbers a+ib.

for example if complex number is -1 -2i then axis are from -4 to 4

Explanation / Answer

figure(2) clf plot([0,2*Y5(6)/nt],'b-'); hold on h5=plot(2*Y5(6)/nt,'bo','MarkerFaceColor','b'); axis equal xlabel('Real component') ylabel('Imaginary component');

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote