summaryrefslogtreecommitdiff
path: root/2855/CH1/EX1.1/Ex1_1.sce
blob: 826a3efe2642d0bb1b878756cdf1fd6d5329f65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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