summaryrefslogtreecommitdiff
path: root/1511/CH2/EX2.6
diff options
context:
space:
mode:
Diffstat (limited to '1511/CH2/EX2.6')
-rwxr-xr-x1511/CH2/EX2.6/ex2_6.sce15
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)