summaryrefslogtreecommitdiff
path: root/858/CH5/EX5.9/example_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '858/CH5/EX5.9/example_9.sce')
-rwxr-xr-x858/CH5/EX5.9/example_9.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/858/CH5/EX5.9/example_9.sce b/858/CH5/EX5.9/example_9.sce
new file mode 100755
index 000000000..235df2404
--- /dev/null
+++ b/858/CH5/EX5.9/example_9.sce
@@ -0,0 +1,11 @@
+clc
+clear
+printf("example 5.9 page number 191\n\n")
+
+//to find the surface temperature of earth
+T_sun = 5973 //in degree C
+d = 1.5*10^13 //in cm
+R = 7.1*10^10; //in cm
+
+T_earth = ((R/(2*d))^0.5)*T_sun;
+printf("Temperature of earth = %f C",T_earth-273)