summaryrefslogtreecommitdiff
path: root/1571/CH12/EX12.9/Chapter12_Example9.sce
blob: 15f945c7d35f130fc20ee0aabe7f56040ec979ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear

//INPUT
n=17000;//luminosity of star compared to sun
t=6000;//temperature of the sun in K

//CALCULATIONS
t1=(n*t^4)^(1/4);//temperature of the star in K

//OUTPUT
mprintf('the temperature of the star is %3.2f K',t1)