From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3717/CH1/EX1.6/Ex1_6.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 3717/CH1/EX1.6/Ex1_6.sce (limited to '3717/CH1/EX1.6/Ex1_6.sce') diff --git a/3717/CH1/EX1.6/Ex1_6.sce b/3717/CH1/EX1.6/Ex1_6.sce new file mode 100644 index 000000000..0ccada540 --- /dev/null +++ b/3717/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,12 @@ +// Ex1_6 Page:15 (2014) +clc; clear; +c = 1; // For simplicity assume speed of light to be unity, m/s +m0 = 1; // For simplicity assume the rest mass, kg +d = 1; // Percentage difference of relativistic mass from the rest mass, kg +m = m0*(1+20/100); // Effective mass of the body while moving, kg +v = poly(0, "v"); // Declare speed variable +v = roots(1 - (v/c)^2 - (m0/m)^2); // Relativistic speed of the moving body +printf("\nThe relativistic speed of the moving body = %5.3fc", v(1)); + +// Result +// The relativistic speed of the moving body = 0.553c -- cgit