blob: 6aa58d695ba6c1520e8826bbe5b33a9e058a14e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//
//
//
//Variable declaration
dlamda=10^-4*10^-10; //width(m)
lamda=6000*10^-10; //wavelength(m)
c=3*10^8; //velocity of light(m/sec)
//Calculations
delta_t=lamda^2/(2*%pi*c*dlamda); //time required(second)
//Result
printf("\n time required is %0.1f *10^-8 second",delta_t*10^8)
|