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 /2330/CH2 | |
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 '2330/CH2')
-rwxr-xr-x | 2330/CH2/EX2.1/ex2_1.sce | 14 | ||||
-rwxr-xr-x | 2330/CH2/EX2.2/ex2_2.sce | 16 | ||||
-rwxr-xr-x | 2330/CH2/EX2.4/ex2_4.sce | 18 | ||||
-rwxr-xr-x | 2330/CH2/EX2.5/ex2_5.sce | 21 | ||||
-rwxr-xr-x | 2330/CH2/EX2.6/ex2_6.sce | 21 | ||||
-rwxr-xr-x | 2330/CH2/EX2.7/ex2_7.sce | 19 |
6 files changed, 109 insertions, 0 deletions
diff --git a/2330/CH2/EX2.1/ex2_1.sce b/2330/CH2/EX2.1/ex2_1.sce new file mode 100755 index 000000000..dbda636bf --- /dev/null +++ b/2330/CH2/EX2.1/ex2_1.sce @@ -0,0 +1,14 @@ +// Example 2.1
+clc;
+clear;
+close;
+format('v',6)
+// given data
+Vin= 15;// in V
+R_L= 10;// in kΩ
+// The output voltage
+Vout= Vin ;// in V
+// The current
+I= Vout/R_L;// in mA
+disp(Vout,"The output voltage in volts is : ");
+disp(I,"The current in mA is : ");
diff --git a/2330/CH2/EX2.2/ex2_2.sce b/2330/CH2/EX2.2/ex2_2.sce new file mode 100755 index 000000000..b94f8f3f7 --- /dev/null +++ b/2330/CH2/EX2.2/ex2_2.sce @@ -0,0 +1,16 @@ +// Example 2.2
+clc;
+clear;
+close;
+format('v',6)
+// given data
+Vin= 15;// in V
+I=0;
+R_L= 10;// in kΩ
+R_L= R_L*10^3;// in Ω
+// The output voltage
+Vout= I*R_L;// in V
+// The voltage across the diode
+V_R= Vin-Vout;// in V
+disp(Vout,"The output voltage in volts is : ");
+disp(V_R,"The voltage across the diode in volts is : ");
diff --git a/2330/CH2/EX2.4/ex2_4.sce b/2330/CH2/EX2.4/ex2_4.sce new file mode 100755 index 000000000..12d07873b --- /dev/null +++ b/2330/CH2/EX2.4/ex2_4.sce @@ -0,0 +1,18 @@ +// Example 2.4
+format('v',6)
+clc;
+clear;
+close;
+// given data
+Vin= 15;// in V
+V_P= Vin;// in V
+R_L= 10;// in kΩ
+R_L= R_L*10^3;// in Ω
+Vout=0;
+// The peak current through the diode
+I_P= V_P/R_L;// in A
+// The maximum reverse voltage
+V_R= Vin-Vout;// in V
+I_P= I_P*10^3;// in mA
+disp(I_P,"The peak current through the diode in mA is : ");
+disp(V_R,"The maximum reverse voltage in volts is : ")
diff --git a/2330/CH2/EX2.5/ex2_5.sce b/2330/CH2/EX2.5/ex2_5.sce new file mode 100755 index 000000000..c43be15f8 --- /dev/null +++ b/2330/CH2/EX2.5/ex2_5.sce @@ -0,0 +1,21 @@ +// Example 2.5
+format('v',6)
+clc;
+clear;
+close;
+// given data
+Vin= 15;// in V
+V_K= 0.7;// in V
+R_L= 10;// in kΩ
+R_L= R_L*10^3;// in Ω
+// The output voltage
+Vout= Vin-V_K;// in V
+// The current
+I= Vout/R_L;// in A
+// The power dissipation of the diode
+P= V_K*I;// in W
+I=I*10^3;// in mA
+P= round(P*10^3);// in mW
+disp(Vout,"The output voltage in volts is : ");
+disp(I,"The current in mA is : ");
+disp(P,"The power dissipation of the diode in mW is : ")
diff --git a/2330/CH2/EX2.6/ex2_6.sce b/2330/CH2/EX2.6/ex2_6.sce new file mode 100755 index 000000000..7fd3b4832 --- /dev/null +++ b/2330/CH2/EX2.6/ex2_6.sce @@ -0,0 +1,21 @@ +// Example 2.6
+format('v',6)
+clc;
+clear;
+close;
+// given data
+Vin= 15;// in V
+V_K= 0.7;// in V
+Vout=0;// in V
+R_L= 10;// in kΩ
+R_L= R_L*10^3;// in Ω
+// The peak output voltage
+V_P= Vin-V_K;// in V
+// The maximum forward current
+I_P= V_P/R_L;// in A
+// The peak inverse voltage
+PIV= Vin-Vout;// in V
+I_P= I_P*10^3;// in mA
+disp(V_P,"The peak output voltage in volts is : ");
+disp(I_P,"The maximum forward current in mA is : ");
+disp(PIV,"The peak inverse voltage in volts is : ")
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 : ")
|