diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /623/CH2/EX2.1.7/U2_C1_7.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '623/CH2/EX2.1.7/U2_C1_7.sce')
-rwxr-xr-x | 623/CH2/EX2.1.7/U2_C1_7.sce | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/623/CH2/EX2.1.7/U2_C1_7.sce b/623/CH2/EX2.1.7/U2_C1_7.sce index c6b50d2b9..14446b4c1 100755 --- a/623/CH2/EX2.1.7/U2_C1_7.sce +++ b/623/CH2/EX2.1.7/U2_C1_7.sce @@ -1,34 +1,34 @@ -//variable initialization
-ch=12400 //constant (eV Å)
-phi_Tantalum=4.2 //work function of Tantalum (eV)
-phi_Tungsten=4.5 //work function of Tungsten (eV)
-phi_Aluminium=4.2 //work function of Aluminium (eV)
-phi_Barium=2.5 //work function of Barium (eV)
-phi_Lithium=2.3 //work function of Lithium (eV)
-
-//Calculation
-lembda_Tantalum=ch/phi_Tantalum; //Threshold wavelength of Tantalum (Å)
-lembda_Tungsten=ch/phi_Tungsten; //Threshold wavelength of Tungsten (Å)
-lembda_Aluminium=ch/phi_Aluminium; //Threshold wavelength of Aluminium (Å)
-lembda_Barium=ch/phi_Barium; //Threshold wavelength of Barium (Å)
-lembda_Lithium=ch/phi_Lithium; //Threshold wavelength of Lithium (Å)
-
-if(lembda_Tantalum<8000&lembda_Tantalum>4000)then //Checking whether Threshold wavelength of Tantalum lies in visible range or not
- disp("Tantalum can be used for designing photocell")
-end
-
-if(lembda_Tungsten<8000&lembda_Tungsten>4000)then //Checking whether Threshold wavelength of Tungsten lies in visible range or not
- disp("Tungsten can be used for designing photocell")
-end
-
-if(lembda_Aluminium<8000&lembda_Aluminium>4000)then //Checking whether Threshold wavelength of Aluminium lies in visible range or not
- disp("Aluminium can be used for designing photocell")
-end
-
-if(lembda_Barium<8000&lembda_Barium>4000)then //Checking whether Threshold wavelength of Barium lies in visible range or not
- disp("Barium can be used for designing photocell")
-end
-
-if(lembda_Lithium<8000&lembda_Lithium>4000)then //Checking whether Threshold wavelength of Lithium lies in visible range or not
- disp("Lithium can be used for designing photocell")
-end
+//variable initialization +ch=12400 //constant (eV Å) +phi_Tantalum=4.2 //work function of Tantalum (eV) +phi_Tungsten=4.5 //work function of Tungsten (eV) +phi_Aluminium=4.2 //work function of Aluminium (eV) +phi_Barium=2.5 //work function of Barium (eV) +phi_Lithium=2.3 //work function of Lithium (eV) + +//Calculation +lembda_Tantalum=ch/phi_Tantalum; //Threshold wavelength of Tantalum (Å) +lembda_Tungsten=ch/phi_Tungsten; //Threshold wavelength of Tungsten (Å) +lembda_Aluminium=ch/phi_Aluminium; //Threshold wavelength of Aluminium (Å) +lembda_Barium=ch/phi_Barium; //Threshold wavelength of Barium (Å) +lembda_Lithium=ch/phi_Lithium; //Threshold wavelength of Lithium (Å) + +if(lembda_Tantalum < 8000 & lembda_Tantalum > 4000) //Checking whether Threshold wavelength of Tantalum lies in visible range or not + disp("Tantalum can be used for designing photocell") +end + +if(lembda_Tungsten < 8000 & lembda_Tungsten > 4000) //Checking whether Threshold wavelength of Tungsten lies in visible range or not + disp("Tungsten can be used for designing photocell") +end + +if(lembda_Aluminium < 8000 & lembda_Aluminium > 4000) //Checking whether Threshold wavelength of Aluminium lies in visible range or not + disp("Aluminium can be used for designing photocell") +end + +if(lembda_Barium < 8000 & lembda_Barium > 4000) //Checking whether Threshold wavelength of Barium lies in visible range or not + disp("Barium can be used for designing photocell") +end + +if(lembda_Lithium < 8000 & lembda_Lithium > 4000) //Checking whether Threshold wavelength of Lithium lies in visible range or not + disp("Lithium can be used for designing photocell") +end
\ No newline at end of file |