summaryrefslogtreecommitdiff
path: root/3537/CH1/EX1.1/Ex1_1.sce
blob: 009d996e84cbc65dbd5af7e664950d214a14f5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 1_1
clc();
clear;
//To calculate the location of screen from slits
d=0.08            //units in cm
d=d*10^-2         //units in mts
betaa=6*10^-4       //units in mts
v=8*10^11           //units in kHz
c=3*10^8            //units in mts
lamda=c/(v*10^3)           //units in mts
d=(betaa*d)/lamda            //units in mts
printf("The distance of the screen from the slits is %.2fmts",d)