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 /2498/CH3/EX3.12/ex3_12.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 '2498/CH3/EX3.12/ex3_12.sce')
-rwxr-xr-x | 2498/CH3/EX3.12/ex3_12.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2498/CH3/EX3.12/ex3_12.sce b/2498/CH3/EX3.12/ex3_12.sce new file mode 100755 index 000000000..f018b778e --- /dev/null +++ b/2498/CH3/EX3.12/ex3_12.sce @@ -0,0 +1,20 @@ +// Exa 3.12
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R_L = 10;// in k ohm
+R_S = 5;// in k ohm
+V_S = 12;// in V
+V_Z = 8;// in V
+V_L = (R_L/(R_S+R_L))*V_S;// in V
+//The output voltage
+Vo = V_L;// in V
+disp(Vo,"The output voltage in V is");
+// The voltage drop across R_S
+R_S = V_S-Vo;// in V
+disp(R_S,"The voltage drop across R_S in V is");
+// The current through the zener diode
+I_Z = 0;// in A
+disp(I_Z,"The current through the zener diode in A is");
|