summaryrefslogtreecommitdiff
path: root/3718/CH1/EX1.18/Ex1_18.sce
blob: e507ea6ae4c081130b1ab613e08e59a93fc797b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)