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 /887/CH2/EX2.16/2_16.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 '887/CH2/EX2.16/2_16.sce')
-rwxr-xr-x | 887/CH2/EX2.16/2_16.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/887/CH2/EX2.16/2_16.sce b/887/CH2/EX2.16/2_16.sce new file mode 100755 index 000000000..b3e778b19 --- /dev/null +++ b/887/CH2/EX2.16/2_16.sce @@ -0,0 +1,15 @@ +clc
+//ex2.16
+V_s=15; //source voltage
+R_1=100;
+R_2=50;
+//Analysis with an open circuit to find V_t
+i_1=V_s/(R_1+R_2); //closed circuit with R_1 and R_2 in series
+V_oc=R_2*i_1; //open-circuit voltage across R_2
+V_t=V_oc; //thevenin voltage
+//Analysis with a short-circuit to find i_sc
+i_sc=V_s/R_1; //R_2 is short-circuited
+R_t=V_oc/i_sc; //thevenin resistance
+printf(" All the values in the textbook are approximated, hence the values in this code differ from those of textbook")
+disp(V_t,'Thevenin voltage for given circuit in volts')
+disp(R_t,'Thevenin voltage for given circuit in ohms')
|