Circuit Theory/Phasors/Examples/Example 7/laplace

From Wikibooks, open books for an open world
Jump to: navigation, search
format short
R = 10;
L = .01;
w = 377;
syms t s c
f = 120*2^.5 * cos(377*t+2*pi/3);
LaplaceOfVs = laplace(f)
h = (LaplaceOfVs+.01*c)/(10+.01*s)
k = ilaplace(h);
iLaplaceOf_Is=vpa(k,3)
vpa(k,10);
m = - 2.578111208 -15.66888638*i;
magnitude=vpa(abs(m),3)
angle=vpa(angle(m),3)