summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.17/Ex2_17.sce
blob: 051a69b8002a098fc494bbb1bd4236b1a3886ea0 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 2_17
clc();
clear;
//To find the slit width
theta=15                       //units in degrees
lemda=6500                    //units in angstrom
lemda=6500*10^-8
n=1
a=(n*lemda)/sin(theta*%pi/180)
printf("slit width of white light is %f",a)