1 2 3 4
vp=100; i=50*10^(-3); x_c=vp/(i*2*sqrt(2)); disp("The opposition to current (in Ω) caused by the capacitor is"); disp(x_c);