Euler identity M*exp(i * theta) = a + i*b a) express M & theta in terms of a & b
ID: 3113470 • Letter: E
Question
Euler identity M*exp(i * theta) = a + i*b a) express M & theta in terms of a & b. write a MATLAB program that evaluates M & theta but requires for the values of interactively. express a & b to be entered interactively. b) express a & b in terms of M & theta. write a MATLAB program that evaluates a & b but requires for the values of M & theta to be entered interactively. Write a MATLAB function that finds the roots of a quadratic equation a* x^2 + b*x + c after inputing the values of a, b, and c. i) a = l b = 2 c = 3 ii) a = 3 b = 5 c = 1 and check using other ways weather the outcome is correct. Experiment with the functions in section 1-4 and write a brief explanation for each function.Explanation / Answer
1)
M*exp(i*theta) = a + i*b
M*(Cos(theta) + i*(Sin(theta)) = a + ib
M*cos(theta ) = a
M*sin(theta) = b
tan(theta ) = (b/a)
theta = tan-1(b/a)
M = b / sin(theta)
Prog(a)
a = input('Enter a');
b = input('Enter b');
c = b/a;
theta = atand(c);
M = b / (sin(theta));
disp(theta);
disp(M);
Prog(b)
M = input('Enter M');
theta = input('Enter theta');
a = M*cosd(theta);
b = M*sind(theta);
disp(a);
disp(b);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.