blob: 5dd8e92514945f012e4df5f5969f205aabdeb9a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Example number 5.6, Page number 86
clc;clear;
close;
//Variable declaration
lamda=1.66*10**-10; //wavelength(m)
m=9.1*10**-32; //mass(kg)
e=1.6*10**-19; //charge(c)
h=6.626*10**-34; //plank constant
//Calculation
E=h**2/(4*m*e*lamda**2); //kinetic energy(eV)
v=h/(m*lamda); //velocity(m/s)
//Result
printf("kinetic energy is %.2f eV",E)
printf("\n velocity is %.2e m/s",v)
|