summaryrefslogtreecommitdiff
path: root/3755/CH5/EX5.2/Ex5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH5/EX5.2/Ex5_2.sce')
-rw-r--r--3755/CH5/EX5.2/Ex5_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3755/CH5/EX5.2/Ex5_2.sce b/3755/CH5/EX5.2/Ex5_2.sce
new file mode 100644
index 000000000..586b8b3f1
--- /dev/null
+++ b/3755/CH5/EX5.2/Ex5_2.sce
@@ -0,0 +1,15 @@
+clear
+//
+//
+//
+
+//Variable declaration
+T=1500; //temperature(K)
+lamda=5500; //wavelength(m)
+lamda_m=20000; //wavelength(m)
+
+//Calculations
+T_dash=lamda_m*T/lamda; //temperature of sun(K)
+
+//Result
+printf("\n temperature is %0.0f K",T_dash)