blob: b9b30e1be6fc3c04985590dd6767e6b57e274f52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example number 5.1, Page number 85
clc;clear;
close;
//Variable declaration
e=1.6*10**-19; //charge(c)
m=9.1*10**-31; //mass(kg)
h=6.626*10**-34; //plank constant
E=2000; //energy(eV)
//Calculation
lamda=h/sqrt(2*m*E*e)*10**9; //wavelength(nm)
//Result
printf("wavelength is %.4f nm",lamda)
|