blob: 82a129523c13a4d49a8c68f33357e833d3f9e658 (
plain)
1
2
3
4
5
6
|
r1=3;
r2=4;
r=sqrt(r1^2+r2^2);
theta=atan(r1/r2)*180/%pi;
disp("in polar form the circuit impedance has a magnitude (in Ω) of"); disp(r);
disp("with a phase angle (in derees) of"); disp(theta);
|