diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2084/CH11/EX11.4w/11_4w.sce | |
download | Scilab-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.4w/11_4w.sce')
-rwxr-xr-x | 2084/CH11/EX11.4w/11_4w.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2084/CH11/EX11.4w/11_4w.sce b/2084/CH11/EX11.4w/11_4w.sce new file mode 100755 index 000000000..8c658174b --- /dev/null +++ b/2084/CH11/EX11.4w/11_4w.sce @@ -0,0 +1,20 @@ +//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 11.4w
+//calculation of the separation between the particles under mutual attraction
+
+//given data
+mA=1//mass(in kg) of particle A
+mB=2//mass(in kg) of particle B
+R=1//initial distance(in m) between the two particles
+vB=3.6*10^-2/(60*60)//speed(in m/s) of the particle B
+G=6.67*10^-11//universal constant of gravitation(in N-m^2/kg^2)
+
+//calculation
+v=(mB*vB)/mA//principle of conservation of linear momentum
+U1=-G*mA*mB/R//initial potential energy of the pair
+d=U1/(U1-(mB*vB*vB/2)-(mA*v*v/2))//principle of conservation of energy
+
+printf('the speed of particle A is %3.1e m/s',v)
+printf('\nthe separation between the particles under mutual attraction is %3.2f m',d)
|