summaryrefslogtreecommitdiff
path: root/647/CH1/EX1.3/Example1_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '647/CH1/EX1.3/Example1_3.sce')
-rwxr-xr-x647/CH1/EX1.3/Example1_3.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/647/CH1/EX1.3/Example1_3.sce b/647/CH1/EX1.3/Example1_3.sce
new file mode 100755
index 000000000..e8d75be73
--- /dev/null
+++ b/647/CH1/EX1.3/Example1_3.sce
@@ -0,0 +1,20 @@
+clear;
+clc;
+
+// Example: 1.3
+// Page: 5
+
+// Solution
+
+printf("Example: 1.3 - Page: 5\n\n");
+
+//*****Data*****//
+r_Moon = 0.3;// [km]
+r_Earth = 1;// [km]
+m2 = 1;// [mass of body, kg]
+mMoon_By_mEarth = 0.013;// [kg/kg]
+//***************//
+
+// According to the Newton's universal law of gravitation:
+Fe_By_Fm = (1/mMoon_By_mEarth)*(r_Moon/r_Earth)^2;
+printf("Mass of 1 kg will weigh %.2f kg on moon\n",Fe_By_Fm); \ No newline at end of file