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 /343/CH2/EX2.78/ex2_78.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 '343/CH2/EX2.78/ex2_78.sce')
-rwxr-xr-x | 343/CH2/EX2.78/ex2_78.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/343/CH2/EX2.78/ex2_78.sce b/343/CH2/EX2.78/ex2_78.sce new file mode 100755 index 000000000..6e694d8be --- /dev/null +++ b/343/CH2/EX2.78/ex2_78.sce @@ -0,0 +1,15 @@ +clc
+C=200*10^-6; //Assigning values to parameters
+V=230;
+R=20;
+L=0.2;
+temp=(1/(L*C))-(R^2/L^2);
+fr=(1/20*%pi)*sqrt(temp);
+Zr=L/(C*R);
+Ir=V/Zr;
+Zl=sqrt(R^2+(2*%pi*fr*L)^2);
+Il=V/Zl;
+Xc=1/(2*%pi*fr*C);
+Ic=V/Xc;
+phi=atan(2*%pi*fr*L/R);
+disp("Hertz",fr,"Resonant frequency");
\ No newline at end of file |