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 /181/CH3/EX3.24/example3_24.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 '181/CH3/EX3.24/example3_24.sce')
-rwxr-xr-x | 181/CH3/EX3.24/example3_24.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/181/CH3/EX3.24/example3_24.sce b/181/CH3/EX3.24/example3_24.sce new file mode 100755 index 000000000..0fde79333 --- /dev/null +++ b/181/CH3/EX3.24/example3_24.sce @@ -0,0 +1,23 @@ +// Sketch output voltage Vo
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 3-24 in page 169
+
+clear; clc; close;
+
+// Given data
+// Data is provided in the diagrams
+
+// Calculation
+printf("(a)When Vi<50 V, Second diode conducts\n");
+Vo=100-((2/3)*27);
+printf("Vo = %0.0f V\n",Vo);
+printf("When 50<Vi<100 both diodes conduct and Vo=Vi.When Vi>100, only the first diode conducts.Hence Vo = 100 V\n");
+printf("(b)When Vi<25 V,neither diodes conduct and Vo = 25 V.When Vi>25,upper diode conducts\n");
+Vi=((100-25)*(3/2))+25;
+printf("When Vo reaches 100 V, Vi rises to %0.1f V",Vi);
+
+// Result
+// The output voltage is shown in the xcos diagrams
\ No newline at end of file |