blob: 35a68a85bc5e2b53d8648330d17fcc29e5d64ff8 (
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)
|