summaryrefslogtreecommitdiff
path: root/3845/CH28/EX28.5/Ex28_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH28/EX28.5/Ex28_5.sce')
-rw-r--r--3845/CH28/EX28.5/Ex28_5.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3845/CH28/EX28.5/Ex28_5.sce b/3845/CH28/EX28.5/Ex28_5.sce
new file mode 100644
index 000000000..a80e4a436
--- /dev/null
+++ b/3845/CH28/EX28.5/Ex28_5.sce
@@ -0,0 +1,8 @@
+//Example 28.5
+u=0.825;//Speed at which the galaxy is moving away from the Earth (in terms of c)
+lambda_s=0.525;//Wavelength of radio waves (m)
+c=1;//Speed of light (in terms of c)
+lambda_obs=lambda_s*sqrt((1+u/c)/(1-u/c));//Wavelength detected on the Earth (m)
+printf('Wavelength of radio waves detected on the Earth = %0.2f m',lambda_obs)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest