summaryrefslogtreecommitdiff
path: root/2084/CH11/EX11.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2084/CH11/EX11.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2084/CH11/EX11.1')
-rwxr-xr-x2084/CH11/EX11.1/11_1.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2084/CH11/EX11.1/11_1.sce b/2084/CH11/EX11.1/11_1.sce
new file mode 100755
index 000000000..c0b565df9
--- /dev/null
+++ b/2084/CH11/EX11.1/11_1.sce
@@ -0,0 +1,19 @@
+//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 11.1
+//calculation of the initial acceleration of the particles
+
+//given data
+m1=1//masss(in kg) of particle1
+m2=2//masss(in kg) of particle2
+r=50*10^-2//separation(in m) between the two particles
+G=6.67*10^-11//universal constant of gravitation(in N-m^2/kg^2)
+
+//calculation
+F=G*m1*m2/(r*r)//force of gravitation
+a1=F/m1//initial acceleration of the particle1
+a2=F/m2//initial acceleration of the particle2
+
+printf('the initial acceleration of the particle1 towards particle2 is %3.1e m/s^2',a1)
+printf('\nthe initial acceleration of the particle2 towards particle1 is %3.1e m/s^2',a2)