summaryrefslogtreecommitdiff
path: root/2780/CH7/EX7.4/Ex7_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2780/CH7/EX7.4/Ex7_4.sce')
-rwxr-xr-x2780/CH7/EX7.4/Ex7_4.sce7
1 files changed, 7 insertions, 0 deletions
diff --git a/2780/CH7/EX7.4/Ex7_4.sce b/2780/CH7/EX7.4/Ex7_4.sce
new file mode 100755
index 000000000..8c5e1b14e
--- /dev/null
+++ b/2780/CH7/EX7.4/Ex7_4.sce
@@ -0,0 +1,7 @@
+clc
+//to calculate wavelength
+h=6.6*10^-34 //plank's constant
+m=9.1*10^-31 //mass of electron in kg
+E=1.25*10^3 //pottential difference keV
+lambda=h/sqrt(2*m*E*1.6*10^-19)
+disp("the wavelength is lambda="+string(lambda)+"angstrom")