summaryrefslogtreecommitdiff
path: root/3755/CH5/EX5.6/Ex5_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH5/EX5.6/Ex5_6.sce')
-rw-r--r--3755/CH5/EX5.6/Ex5_6.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3755/CH5/EX5.6/Ex5_6.sce b/3755/CH5/EX5.6/Ex5_6.sce
new file mode 100644
index 000000000..8d498f3c2
--- /dev/null
+++ b/3755/CH5/EX5.6/Ex5_6.sce
@@ -0,0 +1,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)