diff options
Diffstat (limited to '3717/CH1/EX1.6/Ex1_6.sce')
-rw-r--r-- | 3717/CH1/EX1.6/Ex1_6.sce | 12 |
1 files changed, 12 insertions, 0 deletions
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
|