summaryrefslogtreecommitdiff
path: root/196/CH5/EX5.5/example_5_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /196/CH5/EX5.5/example_5_5.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '196/CH5/EX5.5/example_5_5.sce')
-rwxr-xr-x196/CH5/EX5.5/example_5_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/196/CH5/EX5.5/example_5_5.sce b/196/CH5/EX5.5/example_5_5.sce
new file mode 100755
index 000000000..05724aca8
--- /dev/null
+++ b/196/CH5/EX5.5/example_5_5.sce
@@ -0,0 +1,15 @@
+//Chapter 5
+//Example 5-5
+//ProbOnOpampParameters
+//Page 126, Figure 5-3(b)
+clear;clc;
+//Given
+Ei = 1 ; //Reference voltage
+Ri = 1*10^3 ; //Input Resistance
+Vo = 0.6 ; //Outpur Voltage
+//example 5-5(a)
+I = Ei / Ri ; //Diode Current
+printf ( "\n\n Diode Current = %.4f A ", I )
+//example 5-5(b)
+Vdiode = Vo ;
+printf ( "\n\n Voltage drop across the diode = %.4f V ", Vdiode )