summaryrefslogtreecommitdiff
path: root/1991/CH9/EX9.7/7.sce
blob: de93303996fe6f572121cc53e771301119e2cbee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//input
c=3*10^8 //velocity of speed
w=5.1*10^-7 //wavelength of green light
w1=0.7 //wavelength of radio waves
w2=1.3*10^-13 //wavelength of gamma
h=6.6*10^-34
//calculation
e1=h*c/w//plancks theory for greeen light
e2=h*c/w1//plancks theory for radio waves
e3=h*c/w2//plancks theory for gamma waves
//output
printf("energy carried by green light is %3.3e J",e1)
printf("\nenergy carried by radio waves is %3.3e J",e2)
printf("\nenergy carried by gamma waves is %3.3e J",e3)