summaryrefslogtreecommitdiff
path: root/3755/CH5/EX5.6/Ex5_6.sce
blob: 8d498f3c2d70da5fdb7f172342fc37265cb390f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//
//
//

//Variable declaration    
lamda_m=4753*10^-10;      //wavelength(m)
lamda=14*10^-6;      //wavelength(m)
b=0.2898*10^-2;      //value of constant(mK)

//Calculations
Ts=b/lamda_m;     //temperature of sun(K)    
Tm=b/lamda;       //temperature of moon(K)

//Result
printf("\n temperature of sun is %0.0f K",Ts)
printf("\n temperature of moon is %0.0f K",Tm)