From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 647/CH1/EX1.3/Example1_3.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 647/CH1/EX1.3/Example1_3.sce (limited to '647/CH1/EX1.3/Example1_3.sce') 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 -- cgit