summaryrefslogtreecommitdiff
path: root/3850/CH47/EX47.2
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH47/EX47.2')
-rw-r--r--3850/CH47/EX47.2/Ex47_2.sce24
-rw-r--r--3850/CH47/EX47.2/Ex47_2.txt2
2 files changed, 26 insertions, 0 deletions
diff --git a/3850/CH47/EX47.2/Ex47_2.sce b/3850/CH47/EX47.2/Ex47_2.sce
new file mode 100644
index 000000000..128670c0e
--- /dev/null
+++ b/3850/CH47/EX47.2/Ex47_2.sce
@@ -0,0 +1,24 @@
+
+//To Calculate the height of Passenger in the Ground Frame
+
+//Example 47.2
+
+clear;
+
+clc;
+
+L=6;//Height of Passenger in the train frame
+
+v=3*10^7;//Speed of the train(in which the person is sitting) in m/s
+
+c=3*10^8;//Speed of light in m/s
+
+L1=L*sqrt(1-(v/c)^2);//Height of Passenger in the Ground Frame
+
+L1f=int(L1);//Height of Passenger (in whole number of feets) in the Ground Frame
+
+printf("Height of the passenger in the Ground Frame = %.0f feet ",L1f);
+
+L1i=(L1-L1f)*12;//Height of Passenger (in remaining inches) in the Ground Frame
+
+printf("%.1f inches",L1i);
diff --git a/3850/CH47/EX47.2/Ex47_2.txt b/3850/CH47/EX47.2/Ex47_2.txt
new file mode 100644
index 000000000..06910acf0
--- /dev/null
+++ b/3850/CH47/EX47.2/Ex47_2.txt
@@ -0,0 +1,2 @@
+
+ Height of the passenger in the Ground Frame = 5 feet 11.6 inches \ No newline at end of file