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 /1529/CH18/EX18.11/18_11.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 '1529/CH18/EX18.11/18_11.sce')
-rwxr-xr-x | 1529/CH18/EX18.11/18_11.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/1529/CH18/EX18.11/18_11.sce b/1529/CH18/EX18.11/18_11.sce new file mode 100755 index 000000000..664002835 --- /dev/null +++ b/1529/CH18/EX18.11/18_11.sce @@ -0,0 +1,24 @@ +//Chapter 18, Problem 11
+clc;
+
+//initializing the variables:
+R = 15; //resistance in ohms
+V = 110; //supply voltage
+taw = 2; //time constant
+t1 = 3; // in secs
+i2 =5; // in amperes
+
+//calculation:
+L = taw*R
+t = 0:0.1:10
+I = V/R
+i = I*(%e^(-1*t/taw))
+plot2d(t,i)
+xtitle("current/time characteristic", "t", "i")
+i1 = I*(%e^(-1*t1/taw))
+t2 = -1*taw*log((i2/I))
+
+
+printf("\n Inductance is %.0f H\n\n",L)
+printf("\n (a)The current flowing in the winding 3 s after being shorted-out = %.2f A\n\n",i1)
+printf("\n (b)The time for the current to decay to 5 A = %.3f sec\n\n",t2)
|