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 /1511/CH2/EX2.6 | |
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 '1511/CH2/EX2.6')
-rwxr-xr-x | 1511/CH2/EX2.6/ex2_6.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1511/CH2/EX2.6/ex2_6.sce b/1511/CH2/EX2.6/ex2_6.sce new file mode 100755 index 000000000..aadf28a31 --- /dev/null +++ b/1511/CH2/EX2.6/ex2_6.sce @@ -0,0 +1,15 @@ +// Example 2.6 page no-48
+clear
+clc
+
+//(a)
+V=21.5 //Volts
+e=1.6*10^-19 //C
+m=9.1*10^-31 //kg
+v=sqrt(2*e*V/m)
+lambda=12400/V //A°
+printf("\n(a)\nVelocity, v=%.2f*10^6 m/sec\nWavelength of Radiation, Lambda=%.1f",v/10^6,ceil(lambda))
+//(b)
+c=3*10^8 //m/sec
+f=c/(lambda*10^-10)
+printf("\n(b)\nFrequency of Radiation, f=%.1f*10^15 Hz",f/10^15)
|