blob: bd40cb1651d1a80162fb2c7f7865fb2347b73121 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
// Given that
E = 5e-19 // energy of photon in J
h = 6.62e-34 // Planck constant in J-sec
c = 3e8 // speed of light in m/sec
e = 1.6e-19 // charge on an electron in C
// Sample Problem 5 on page no. 14.21
printf("\n # PROBLEM 5 # \n")
printf("Standard formula used \n")
printf(" E = h*c/lambda \n")
lambda = c * h / E
printf("\n Wavelength is %f Angstrom.",lambda * 10^10)
|