summaryrefslogtreecommitdiff
path: root/2381/CH12/EX12.12/ex_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '2381/CH12/EX12.12/ex_12.sce')
-rwxr-xr-x2381/CH12/EX12.12/ex_12.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2381/CH12/EX12.12/ex_12.sce b/2381/CH12/EX12.12/ex_12.sce
new file mode 100755
index 000000000..648a48c87
--- /dev/null
+++ b/2381/CH12/EX12.12/ex_12.sce
@@ -0,0 +1,11 @@
+//Example 12//doppler shift and velocity
+clc;
+clear;
+close;
+h1=6010;//Å
+h2=6000;//Å
+ds=h1-h2;//Å
+disp(ds,"doppler shift is ,(Å)=")
+c=3*10^8;//m/s
+v=((ds/h2)*c);//m/s
+disp(v,"speed is ,(m/s)=")