blob: 50cff6de6824c17dc11dce6d470eac664f604fd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
l=8;
r=400;
v=120;
f=60;
disp("Part a");
x_l=2*%pi*f*l;
q=x_l/r;
vc=q*v;
disp("the capacitor voltage (in V) is"); disp(vc);
disp("Part b");
c=1/(4*%pi^2*f^2*l)
disp("the necessary capacitance (in μF) is"); disp(c*10^6);
|