You are on page 1of 3

12/13/22, 10:51 PM prosper2

Prosper Isiodu Chukwumenya


U2019/3025011
Contents
Question 3
Question 4

Question 5

Question 3

syms x;
ANS = partfrac(3*x^4-21*x^3+45*x^2-39*x+12/(x^7+15*x^6+96*x^5+340*x^4+720*x^3+912*x^2+640*x+192));
pretty(ANS)

12 12 12 12 12 12 12
-------- - ----- - 39 x + ----- - -------- + -------- - -------- + --------2
x + 2 x + 3 3 4 5 6
(x + 2) (x + 2) (x + 2) (x + 2) (x + 2)

2 3 4
+ 45 x - 21 x + 3 x

Question 4

%a.
A = 1 + 2i;
MAGa = abs(A)
ARGa = angle(A)

%b.
B = 3 + 4i;
MAGb = abs(B)
ARGb = angle(B)

%c.
C = 5 - 7i;
MAGc = abs(C)
ARGc = angle(C)

%d.
D = 4 - 2i;
MAGd = abs(D)
ARGd = angle(D)

MAGa =

2.2361

ARGa =

1.1071

MAGb =

5
file:///C:/Users/isiodue_new/Desktop/Isiodu/html/prosper 2.html 1/3
12/13/22, 10:51 PM prosper2

ARGb =

0.9273

MAGc =

8.6023

ARGc =

-0.9505

MAGd =

4.4721

ARGd =

-0.4636

Question 5

%a.
a = 1;
ath = pi/2;
[x,y] = pol2cart(ath,a)

%b.
b = 2;
bth = 0;
[x,y] = pol2cart(bth,b)

%c.
c = 2;
cth = pi/6;
[x,y] = pol2cart(cth,c)

x =

y =

x =

file:///C:/Users/prosper_new/Desktop/prosper/html/Isiodu 2.html 2/3


12/13/22, 10:51 PM prosper2

y =

x =

3^(1/2)

y =

Published with MATLAB® R2015a

file:///C:/Users/prosper _new/Desktop/prosper/html/isiodu2.html 3/3

You might also like