blob: f503fac5f59aa14f9fe92fa524e7d5dea9ec4636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Example 25_8
clc();
clear;
//To find the energy of photonn each case
dist1=1240*10^-9 //units in meters
lamda1=100 //units in meters
e1=dist1/lamda1 //Units in eV
dist2=1240 //units in nano meters
lamda2=550 //units in meters
e2=dist2/lamda2 //Units in eV
dist3=1240 //units in nano meters
lamda3=0.2 //units in meters
e3=dist3/lamda3 //Units in eV
printf("The energy with radio waves is E1=")
disp(e1)
printf("eV\n")
printf("The energy with green light is E2=")
disp(e2)
printf("eV\n")
printf("The energy with photon is E3=")
disp(e3)
printf("eV\n")
|