summaryrefslogtreecommitdiff
path: root/3875/CH10/EX10.1/Ex10_1.sce
blob: 43ead03018cf70958cf03a611c8604f855007756 (plain)
1
2
3
4
5
6
7
8
9
10
clc;
clear;
T1=6000 //temperature of the sun in K
E1_by_E2=17000 //ratio of luminosity of sun to the star 

//calculation

T2=T1*E1_by_E2^(1/4)
mprintf("The temperature of the star is = %d K",T2)
//Answer varies due to round off error