summaryrefslogtreecommitdiff
path: root/2855/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2855/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--2855/CH1/EX1.1/Ex1_1.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2855/CH1/EX1.1/Ex1_1.sce b/2855/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..826a3efe2
--- /dev/null
+++ b/2855/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,19 @@
+
+
+
+
+
+//Example1-1
+//Given
+clc;
+clear all;
+printf("(i) t1=d/c \n");
+printf(" (ii) t2=[(d-5)/c]+[5/v2] \n");
+printf(" v2=c/n2 \n");
+printf(" t2=(d+2.5)/c\n");
+printf(" (iii) delta_t=t2-t1=(d+2.5-d)/c\n");
+c=3*10^8; //Speed of light in m/s
+delta_t=2.5*10^-2/c; //converted 2.5 cm into meters
+printf('The time difference %e s",delta_t );
+printf("\n Arrival time difference of two monochromatic beams is %0.0f ps",delta_t*10^12)
+// Answer misprinted in the book