Circuit Theory/Phasors/Examples/Example 8/m-filec

syms t;
R=10;
L=.01;
im = 120*2^.5;
w = 377;
phi = 2*pi/3;
vr = R*im*cos(w*t + phi);
vL = L*w*im*cos(w*t + phi + pi/2);
vS= im*(R^2+(L*w)^2)^.5*cos(w*t + phi + atan(L*w/R));
vpa(vr,3)
vpa(vL,3)
vpa(vS,3)