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 --- 2084/CH11/EX11.4w/11_4w.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 2084/CH11/EX11.4w/11_4w.sce (limited to '2084/CH11/EX11.4w/11_4w.sce') 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) -- cgit