diff options
Diffstat (limited to '2330/CH2/EX2.7/ex2_7.sce')
-rwxr-xr-x | 2330/CH2/EX2.7/ex2_7.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2330/CH2/EX2.7/ex2_7.sce b/2330/CH2/EX2.7/ex2_7.sce new file mode 100755 index 000000000..316e940dd --- /dev/null +++ b/2330/CH2/EX2.7/ex2_7.sce @@ -0,0 +1,19 @@ +// Example 2.7
+clc;
+clear;
+close;
+format('v',5)
+// given data
+Vin= 10;// in V
+V_K= 0.7;// in V
+Vout=0;// in V
+R_L= 1000;// in kΩ
+r_B= 20;// in Ω
+// The peak forward current,
+I_P= (Vin-V_K)/(R_L+r_B);// in A
+// The peak voltage
+V_P= I_P*R_L;// in V
+// The peak inverse voltage
+PIV= Vin-Vout;// in V
+disp(V_P,"The peak voltage in volts is : ");
+disp(PIV,"The peak inverse voltage in volts is : ")
|