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 --- 1535/CH8/EX8.1/Ch08Ex1.sci | 11 +++++++++++ 1535/CH8/EX8.10/Ch08Ex10.sci | 8 ++++++++ 1535/CH8/EX8.11/Ch08Ex11.sci | 17 +++++++++++++++++ 1535/CH8/EX8.13/Ch08Ex13.sci | 14 ++++++++++++++ 1535/CH8/EX8.14/Ch08Ex14.sci | 9 +++++++++ 1535/CH8/EX8.15/Ch08Ex15.sci | 20 ++++++++++++++++++++ 1535/CH8/EX8.2/Ch08Ex2.sci | 10 ++++++++++ 1535/CH8/EX8.4/Ch08Ex4.sci | 12 ++++++++++++ 1535/CH8/EX8.5/Ch08Ex5.sci | 15 +++++++++++++++ 1535/CH8/EX8.6/Ch08Ex6.sci | 16 ++++++++++++++++ 1535/CH8/EX8.7/Ch08Ex7.sci | 11 +++++++++++ 1535/CH8/EX8.8/Ch08Ex8.sci | 22 ++++++++++++++++++++++ 1535/CH8/EX8.9/Ch08Ex9.sci | 10 ++++++++++ 13 files changed, 175 insertions(+) create mode 100755 1535/CH8/EX8.1/Ch08Ex1.sci create mode 100755 1535/CH8/EX8.10/Ch08Ex10.sci create mode 100755 1535/CH8/EX8.11/Ch08Ex11.sci create mode 100755 1535/CH8/EX8.13/Ch08Ex13.sci create mode 100755 1535/CH8/EX8.14/Ch08Ex14.sci create mode 100755 1535/CH8/EX8.15/Ch08Ex15.sci create mode 100755 1535/CH8/EX8.2/Ch08Ex2.sci create mode 100755 1535/CH8/EX8.4/Ch08Ex4.sci create mode 100755 1535/CH8/EX8.5/Ch08Ex5.sci create mode 100755 1535/CH8/EX8.6/Ch08Ex6.sci create mode 100755 1535/CH8/EX8.7/Ch08Ex7.sci create mode 100755 1535/CH8/EX8.8/Ch08Ex8.sci create mode 100755 1535/CH8/EX8.9/Ch08Ex9.sci (limited to '1535/CH8') diff --git a/1535/CH8/EX8.1/Ch08Ex1.sci b/1535/CH8/EX8.1/Ch08Ex1.sci new file mode 100755 index 000000000..0d72b7fb8 --- /dev/null +++ b/1535/CH8/EX8.1/Ch08Ex1.sci @@ -0,0 +1,11 @@ +// Scilab Code Ex8.1: Page-171 (2010) +L_0 = 1; // For simplicity, we assume classical length to be unity, m +c = 1; // For simplicity assume speed of light to be unity, m/s +L = (1-1/100)*L_0; // Relativistic length, m +// Relativistic length contraction gives +// L = L_0*sqrt(1-v^2/c^2), solving for v +v = sqrt(1-(L/L_0)^2)*c; // Speed at which relativistic length is 1 percent of the classical length, m/s +printf("\nThe speed at which relativistic length is 1 percent of the classical length = %5.3fc", v); + +// Result +// The speed at which relativistic length is 1 percent of the classical length = 0.141c \ No newline at end of file diff --git a/1535/CH8/EX8.10/Ch08Ex10.sci b/1535/CH8/EX8.10/Ch08Ex10.sci new file mode 100755 index 000000000..cb1c55c62 --- /dev/null +++ b/1535/CH8/EX8.10/Ch08Ex10.sci @@ -0,0 +1,8 @@ +// Scilab Code Ex8.10: Page-175 (2010) +c = 3e+008; // Speed of light in vacuum, m/s +dE = 4e+026; // Energy radiated per second my the sun, J/s +dm = dE/c^2; // Rate of decrease of mass of sun, kg/s +printf("\nThe rate of decrease of mass of sun = %4.2e kg/s", dm); + +// Result +// The rate of decrease of mass of sun = 4.44e+009 kg/s \ No newline at end of file diff --git a/1535/CH8/EX8.11/Ch08Ex11.sci b/1535/CH8/EX8.11/Ch08Ex11.sci new file mode 100755 index 000000000..77949a9b6 --- /dev/null +++ b/1535/CH8/EX8.11/Ch08Ex11.sci @@ -0,0 +1,17 @@ +// Scilab Code Ex8.11: Page-175 (2010) +c = 1; // For simplicity assume speed of light to be unity, m/s +m0 = 9.1e-031; // Mass of the electron, kg +E0 = 0.512; // Rest energy of electron, MeV +T = 10; // Kinetic energy of electron, MeV +E = T + E0; // Total energy of electron, MeV +// From Relativistic mass-energy relation +// E^2 = c^2*p^2 + m0^2*c^4, solving for p +p = sqrt(E^2-m0^2*c^4)/c; // Momentum of the electron, MeV +// As E = E0/sqrt(1-(u/c)^2), solving for u +u = sqrt(1-(E0/E)^2)*c; // Velocity of the electron, m/s +printf("\nThe momentum of the electron = %4.1f/c MeV", p); +printf("\nThe velocity of the electron = %6.4fc", u); + +// Result +// The momentum of the electron = 10.5/c MeV +// The velocity of the electron = 0.9988c diff --git a/1535/CH8/EX8.13/Ch08Ex13.sci b/1535/CH8/EX8.13/Ch08Ex13.sci new file mode 100755 index 000000000..1e57653b7 --- /dev/null +++ b/1535/CH8/EX8.13/Ch08Ex13.sci @@ -0,0 +1,14 @@ +// Scilab Code Ex8.13: Page-176 (2010) +c = 3e+008; // Speed of light in vacuum, m/s +E = 4.5e+017; // Total energy of object, J +px = 3.8e+008; // X-component of momentum, kg-m/s +py = 3e+008; // Y-component of momentum, kg-m/s +pz = 3e+008; // Z-component of momentum, kg-m/s +p = sqrt(px^2+py^2+px^2); // Total momentum of the object, kg-m/s +// From Relativistic mass-energy relation +// E^2 = c^2*p^2 + m0^2*c^4, solving for m0 +m0 = sqrt(E^2/c^4 - p^2/c^2); // Rest mass of the body, kg +printf("\nThe rest mass of the body = %4.2f kg", m0); + +// Result +// The rest mass of the body = 4.56 kg \ No newline at end of file diff --git a/1535/CH8/EX8.14/Ch08Ex14.sci b/1535/CH8/EX8.14/Ch08Ex14.sci new file mode 100755 index 000000000..62ac60f32 --- /dev/null +++ b/1535/CH8/EX8.14/Ch08Ex14.sci @@ -0,0 +1,9 @@ +// Scilab Code Ex8.14: Page-176 (2010) +c = 3e+008; // Speed of light in vacuum, m/s +m = 50000; // Mass of high speed probe, kg +u = 0.8*c; // Speed of the probe, m/s +p = m*u/sqrt(1-(u/c)^2); // Momentum of the probe, kg-m/s +printf("\nThe momentum of the high speed probe = %1g kg-m/s", p); + +// Result +// The momentum of the high speed probe = 2e+013 kg-m/s \ No newline at end of file diff --git a/1535/CH8/EX8.15/Ch08Ex15.sci b/1535/CH8/EX8.15/Ch08Ex15.sci new file mode 100755 index 000000000..c8f0d2e36 --- /dev/null +++ b/1535/CH8/EX8.15/Ch08Ex15.sci @@ -0,0 +1,20 @@ +// Scilab Code Ex8.15: Page-177 (2010) +e = 1.6e-019; // Electronic charge, C = Energy equivalent of 1 eV, J/eV +m0 = 9.11e-031; // Rest mass of electron, kg +c = 3e+008; // Speed of light in vacuum, m/s +u1 = 0.98*c; // Inital speed of electron, m/s +u2 = 0.99*c; // Final speed of electron, m/s +m1 = m0/sqrt(1-(u1/c)^2); // Initial relativistic mass of electron, kg +m2 = m0/sqrt(1-(u2/c)^2); // Final relativistic mass of electron, kg +dm = m2 - m1; // Change in relativistic mass of the electron, kg +W = dm*c^2; // Work done on the electron to change its velocity, J +// As W = eV, V = accelerating potential, solving for V +V = W/e; // Accelerating potential, volt +printf("\nThe change in relativistic mass of the electron = %4.1e kg", dm); +printf("\nThe work done on the electron to change its velocity = %4.2f MeV", W/(e*1e+006)); +printf("\nThe accelerating potential = %4.2e volt", V); + +// Result +// The change in relativistic mass of the electron = 1.9e-030 kg +// The work done on the electron to change its velocity = 1.06 MeV +// The accelerating potential = 1.06e+006 volt \ No newline at end of file diff --git a/1535/CH8/EX8.2/Ch08Ex2.sci b/1535/CH8/EX8.2/Ch08Ex2.sci new file mode 100755 index 000000000..3fdfba370 --- /dev/null +++ b/1535/CH8/EX8.2/Ch08Ex2.sci @@ -0,0 +1,10 @@ +// Scilab Code Ex8.2: Page-171 (2010) +c = 1; // For simplicity assume speed of light to be unity, m/s +v = 0.9*c; // Speed at which beam of particles travel, m/s +delta_t = 5e-006; // Mean lifetime of particles as observed in the Lab. frame, s +delta_tau = delta_t*sqrt(1-(v/c)^2); // Proper lifetime of particle as per Time Dilation rule, s +printf("\nThe proper lifetime of particle = %4.2e s", delta_tau); + +// Result +// The proper lifetime of particle = 2.18e-006 s + diff --git a/1535/CH8/EX8.4/Ch08Ex4.sci b/1535/CH8/EX8.4/Ch08Ex4.sci new file mode 100755 index 000000000..0c4cf8a5b --- /dev/null +++ b/1535/CH8/EX8.4/Ch08Ex4.sci @@ -0,0 +1,12 @@ +// Scilab Code Ex8.4: Page-172 (2010) +c = 1; // For simplicity assume speed of light to be unity, m/s +v = 0.6*c; // Speed with which the rocket leaves the earth, m/s +u_prime = 0.9*c; // Relative speed of second rocket w.r.t. the first rocket, m/s +u = (u_prime+v)/(1+(u_prime*v)/c^2); // Speed of second rocket for same direction of firing as per Velocity Addition Rule, m/s +printf("\nThe speed of second rocket for same direction of firing = %5.3fc", u); +u = (-u_prime+v)/(1-(u_prime*v)/c^2); // Speed of second rocket for opposite direction of firing as per Velocity Addition Rule, m/s +printf("\nThe speed of second rocket for opposite direction of firing = %5.3fc", u); + +// Result +// The speed of second rocket for same direction of firing = 0.974c +// The speed of second rocket for opposite direction of firing = -0.652c \ No newline at end of file diff --git a/1535/CH8/EX8.5/Ch08Ex5.sci b/1535/CH8/EX8.5/Ch08Ex5.sci new file mode 100755 index 000000000..4d831344d --- /dev/null +++ b/1535/CH8/EX8.5/Ch08Ex5.sci @@ -0,0 +1,15 @@ +// Scilab Code Ex8.5: Page-172 (2010) +c = 1; // For simplicity assume speed of light to be unity, m/s +L0 = 1; // For simplicity assume length in spaceship's frame to be unity, m +L = 1/2*L0; // Length as observed on earth, m +// Relativistic length contraction gives +// L = L_0*sqrt(1-v^2/c^2), solving for v +v = sqrt(1-(L/L0)^2)*c; // Speed at which length of spaceship is observed as half from the earth frame, m/s +tau = 1; // Unit time in the spaceship's frame, s +t = tau/sqrt(1-(v/c)^2); // Time dilation of the spaceship's unit time, s +printf("\nThe speed at which length of spaceship is observed as half from the earth frame = %5.3fc", v); +printf("\nThe time dilation of the spaceship unit time = %1g*tau", t); + +// Result +// The speed at which length of spaceship is observed as half from the earth frame = 0.866c +// The time dilation of the spaceship unit time = 2*tau diff --git a/1535/CH8/EX8.6/Ch08Ex6.sci b/1535/CH8/EX8.6/Ch08Ex6.sci new file mode 100755 index 000000000..18cc2e425 --- /dev/null +++ b/1535/CH8/EX8.6/Ch08Ex6.sci @@ -0,0 +1,16 @@ +// Scilab Code Ex8.6: Page-172 (2010) +c = 3e+008; // Speed of light in vacuum, m/s +v = 0.6*c; // Velocity with which S2 frame moves relative to S1 frame, m/s +L_factor = 1/sqrt(1-(v/c)^2); // Lorentz factor +t1 = 2e-007; // Time for which first event occurs, s +t2 = 3e-007; // Time for which second event occurs, s +x1 = 10; // Position at which first event occurs, m +x2 = 40; // Position at which second event occurs, m +delta_t = L_factor*(t2 - t1)+L_factor*v/c^2*(x1 - x2); // Time difference between the events, s +delta_x = L_factor*(x2 - x1)-L_factor*v*(t2 - t1); // Distance between the events, m +printf("\nThe time difference between the events = %3.1e s", delta_t); +printf("\nThe distance between the events = %2d m", delta_x); + +// Result +// The time difference between the events = 5.0e-008 s +// The distance between the events = 15 m \ No newline at end of file diff --git a/1535/CH8/EX8.7/Ch08Ex7.sci b/1535/CH8/EX8.7/Ch08Ex7.sci new file mode 100755 index 000000000..e9b943df9 --- /dev/null +++ b/1535/CH8/EX8.7/Ch08Ex7.sci @@ -0,0 +1,11 @@ +// Scilab Code Ex8.7: Page-173 (2010) +c = 3e+008; // Speed of light in vacuum, m/s +tau = 2.6e-008; // Mean lifetime the particle in its own frame, s +d = 20; // Distance which the unstable particle travels before decaying, m +// As t = d/v and also t = tau/sqrt(1-(v/c)^2), so that +// d/v = tau/sqrt(1-(v/c)^2), solving for v +v = sqrt(d^2/(tau^2+(d/c)^2)); // Speed of the unstable particle in Lab. frame, m/s +printf("\nThe speed of the unstable particle in Lab. frame = %3.1e m/s", v) + +// Result +// The speed of the unstable particle in Lab. frame = 2.8e+008 m/s \ No newline at end of file diff --git a/1535/CH8/EX8.8/Ch08Ex8.sci b/1535/CH8/EX8.8/Ch08Ex8.sci new file mode 100755 index 000000000..f30ecd927 --- /dev/null +++ b/1535/CH8/EX8.8/Ch08Ex8.sci @@ -0,0 +1,22 @@ +// Scilab Code Ex8.8: Page-174 (2010) +c = 1; // For simplicity assume speed of light to be unity, m/s +me = 1; // For simplicity assume mass of electron to be unity, kg +tau = 2.3e-006; // Average lifetime of mu-meson in rest frame, s +t = 6.9e-006; // Average lifetime of mu-meson in laboratory frame, s +// Fromm Time Dilation Rule, tau = t*sqrt(1-(v/c)^2), solving for v +v = sqrt(1-(tau/t)^2)*c; // Speed of mu-meson in the laboratory frame, m/s +c +m0 = 207*me; // Rest mass of mu-meson, kg +m = m0/sqrt(1-(v/c)^2); // Relativistic variation of mass with velocity, kg +me = 9.1e-031; // Mass of an electron, kg +c = 3e+008; // Speed of light in vacuum, m/s +e = 1.6e-019; // Energy equivalent of 1 eV, J/eV +T = (m*me*c^2 - m0*me*c^2)/e; // Kinetic energy of mu-meson, J +printf("\nThe speed of mu-meson in the laboratory frame = %6.4fc", v); +printf("\nThe effective mass of mu-meson = %3d me", m); +printf("\nThe kinetic energy of mu-meson = %5.1f MeV", T/1e+006); + +// Result +// The speed of mu-meson in the laboratory frame = 0.9428c +// The effective mass of mu-meson = 620 me +// The kinetic energy of mu-meson = 211.9 MeV \ No newline at end of file diff --git a/1535/CH8/EX8.9/Ch08Ex9.sci b/1535/CH8/EX8.9/Ch08Ex9.sci new file mode 100755 index 000000000..5360e92cc --- /dev/null +++ b/1535/CH8/EX8.9/Ch08Ex9.sci @@ -0,0 +1,10 @@ +// Scilab Code Ex8.9: Page-174 (2010) +c = 1; // For simplicity assume speed of light to be unity, m/s +m0 = 1; // For simplicity assume rest mass to be unity, kg +m = (20/100+1)*m0; // Mass in motion, kg +// As m = m0/sqrt(1-(u/c)^2), solving for u +u = sqrt(1-(m0/m)^2)*c; // Speed of moving mass, m/s +printf("\nThe speed of moving body, u = %5.3fc", u); + +// Result +// The speed of moving body, u = 0.553c -- cgit