From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1004/CH2/EX2.1/Ch02Ex1.sci | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 1004/CH2/EX2.1/Ch02Ex1.sci (limited to '1004/CH2/EX2.1') diff --git a/1004/CH2/EX2.1/Ch02Ex1.sci b/1004/CH2/EX2.1/Ch02Ex1.sci new file mode 100755 index 000000000..573bd88dd --- /dev/null +++ b/1004/CH2/EX2.1/Ch02Ex1.sci @@ -0,0 +1,9 @@ +// Scilab Code Ex2.1 Threshold wavelength of tungsten: Pg:4 (2008) +phi = 4.5*1.6e-019; // Work function for tungesten, joule +h = 6.6e-034; // Planck's constant, Js +c = 3e+08; // Speed of light, m/s +// As phi = h*c/L0, solving for L0 +L0 = h*c/phi; // Threshold wavelength of tungesten, m +printf("\nThe threshold wavelength of tungesten = %4d angstrom", L0/1e-010); +// Result +// The threshold wavelength of tungesten = 2750 angstrom \ No newline at end of file -- cgit