summaryrefslogtreecommitdiff
path: root/1847/CH1/EX1.18/Ch01Ex18.sce
blob: 8f96c0ddb730e0853eefff7d635d93c7ade5a15e (plain)
1
2
3
4
5
6
7
8
9
10
// Scilab Code Ex1.18:  Page-1.19 (2009)
clc; clear;
m = 9.1e-031;     // Mass of the electron, kg
Ek = 1.27e-017;     // Kinetic energy of electron, J
h = 6.6e-034;     // Planck's constant
lambda = h/sqrt(2*m*Ek); // de-Broglie wavelength of electron, m
printf("\nThe wavelength associated with moving electron = %4.2f angstrom", lambda/1e-010);

// Result 
// The wavelength associated with moving electron = 1.37 angstrom