summaryrefslogtreecommitdiff
path: root/2510/CH11/EX11.4/Ex11_4.sce
blob: a31d594c6c35444e750980281d1ecf9837384882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Variable declaration:
l = 0.25                            //Wavelength (mu.m)
//From equation 11.4:
lT = 2884                           //Product of wavelength and absolute temperature (mu.m.°R)

//Calculation:
T = lT/l                            //Sun's temperature (°R)
T1 = round(T * 10**-2)/10**-2
T = T - 460
T460 = round(T * 10**-3)/10**-3

//Result:
printf("The Sun s temperature is : %f  °R.",T1)
printf("The Sun s temperature in fahrenheit scale is : %f °F.",T460)