summaryrefslogtreecommitdiff
path: root/3718/CH1/EX1.18/Ex1_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '3718/CH1/EX1.18/Ex1_18.sce')
-rw-r--r--3718/CH1/EX1.18/Ex1_18.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3718/CH1/EX1.18/Ex1_18.sce b/3718/CH1/EX1.18/Ex1_18.sce
new file mode 100644
index 000000000..e507ea6ae
--- /dev/null
+++ b/3718/CH1/EX1.18/Ex1_18.sce
@@ -0,0 +1,18 @@
+//Chapter 1: Structure and Bonding
+//Problem: 18
+clc;
+
+//Declaration of Constants
+e = 1.602 * 10 ** -19 // Charge of proton, C
+m_p = 1.66 * 10 ** -27 // Mass of proton, kg
+m_e = 9.1 * 10 ** -31 // Mass of electron, kg
+h = 6.626 * 10 ** -34 // Plank's constant, J.sec
+
+// Variable
+V = 35 // Acceleration potential, volt
+
+// Solution
+lamda_p = h / sqrt(2 * e * V * m_p)
+lamda_e = h / sqrt(2 * e * V * m_e)
+
+mprintf("The wavelength of electron when accelerated with same potential is %.3e m",lamda_e)