diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /995/CH4/EX4.14/Ex4_14.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '995/CH4/EX4.14/Ex4_14.sce')
-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 |