blob: 58472a9f40b6bc86e760db44a7875922f5c7b156 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Calculate frequency and wavelength of radiation
clc
E = 1.64e-18 // energy difference between two states in J
h= 6.626e-34 // planks constant
c = 2.998e8 // speed of light in m/s
printf("\n Example 4.1")
nu = E/h
lambda = c/nu
printf("\n Frequency of emitted radiation is %.2e Hz",nu)
printf("\n Wavelength of emitted radiation is %.2e m \n\t \tor\t\t %d angstrom",lambda,lambda*1e10)// answer in book is 1210 angstrom
|