diff options
Diffstat (limited to '995/CH4/EX4.14')
-rwxr-xr-x | 995/CH4/EX4.14/Ex4_14.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/995/CH4/EX4.14/Ex4_14.sce b/995/CH4/EX4.14/Ex4_14.sce new file mode 100755 index 000000000..6e6771155 --- /dev/null +++ b/995/CH4/EX4.14/Ex4_14.sce @@ -0,0 +1,16 @@ +//Ex:4.14
+clc;
+clear;
+close;
+L=20*10^-3;
+f=2000;
+V=1.5;
+r=100;
+C=10*10^-9;
+X_L=(2*%pi*f*L);
+X_C=1/(2*%pi*f*C);
+z=sqrt(r^2+(X_L-X_C)^2);
+i=V/z;
+v=i*r;
+printf("Current supplied = %f mA",i);
+printf("\nVoltage developed = %f V",v);
\ No newline at end of file |