summaryrefslogtreecommitdiff
path: root/2528/CH7/EX7.8/Ex7_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2528/CH7/EX7.8/Ex7_8.sce')
-rwxr-xr-x2528/CH7/EX7.8/Ex7_8.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2528/CH7/EX7.8/Ex7_8.sce b/2528/CH7/EX7.8/Ex7_8.sce
new file mode 100755
index 000000000..c47c92e94
--- /dev/null
+++ b/2528/CH7/EX7.8/Ex7_8.sce
@@ -0,0 +1,23 @@
+// Chapter7
+// Page.No-250
+// Example7_8
+// Determine the output voltage
+//Figure 7.56
+// Given
+clc;
+clear;
+Vin=1; //in V
+T=300; //in Kelvin
+Ri=50000; //in Ohm
+Is=30*10^-9; //in Amp
+//Vout=-0.0259*ln(Vin/RiIs)
+Vout=-0.0259*log1p(Vin/(Ri*Is))
+printf("\n Vout when Vin=1V %.4f V\n",Vout);
+//for Vin=0.5V
+Vin1=0.5; //in V
+Vout1=-0.0259*log1p(Vin1/(Ri*Is))
+printf("\n Vout when Vin=0.5V %.4f V\n",Vout1);
+//for Vin=2V
+Vin2=2; //in V
+Vout2=-0.0259*log1p(Vin2/(Ri*Is))
+printf("\n Vout when Vin=2V %.4f V",Vout2);