summaryrefslogtreecommitdiff
path: root/2741/CH8/EX8.13/Chapter8_Example13.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2741/CH8/EX8.13/Chapter8_Example13.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2741/CH8/EX8.13/Chapter8_Example13.sce')
-rwxr-xr-x2741/CH8/EX8.13/Chapter8_Example13.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2741/CH8/EX8.13/Chapter8_Example13.sce b/2741/CH8/EX8.13/Chapter8_Example13.sce
new file mode 100755
index 000000000..c237141e1
--- /dev/null
+++ b/2741/CH8/EX8.13/Chapter8_Example13.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Input data
+S=2.3;//Solar constant in cal/cm^2/minute
+r=7*10^10;//The radius of the sun in cm
+R=1.5*10^13;//The distance between the sun and the earth in cm
+s=1.37*10^-12;//Stefans constant in cal/cm^2/s
+
+//Calculations
+E=(S/60)*(R/r)^(2);//The energy radiated from the sun in cal/s
+T=(E/s)^(1/4);//The black body temperature of the sun in K
+
+//Output
+printf('The black body temperature of the sun is T = %3.0f K ',T)