diff options
Diffstat (limited to '647/CH1/EX1.2')
-rwxr-xr-x | 647/CH1/EX1.2/Example1_2.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/647/CH1/EX1.2/Example1_2.sce b/647/CH1/EX1.2/Example1_2.sce new file mode 100755 index 000000000..90116befd --- /dev/null +++ b/647/CH1/EX1.2/Example1_2.sce @@ -0,0 +1,20 @@ +clear;
+clc;
+
+// Example: 1.2
+// Page: 5
+
+// Solution
+
+printf("Example: 1.2 - Page: 5\n\n");
+
+//*****Data*****//
+m1 = 1.5;// [mass of the body, kg]
+m2 = 6*10^(24);// [mass of the Earth, kg]
+G = 6.672*10^(-11);// [N.square m/square.kg]
+r = 6000*10^(3);// [m]
+//************//
+
+// According to Newton's universal law of gravity:
+F = G*m1*m2/r^2;// [N]
+printf("Gravitational force on the body is %.2f N\n",F);
\ No newline at end of file |