summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.3/Ex2_3.sce
blob: 5a0ce3188fd96fabedee27a409a3bbee6bfcc66d (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 2_3
clc();
clear;
//To calculate the minimum number of lines
lemda=5890                    //units in angstrom
lemda=5890*10^-8              //units in centimeters
dlemda=6*10^-8               //units in centimeters
k=2
width=2.5                   //units in centimeters
n=(lemda/(k*dlemda))/width
printf("no of lines per cm is %.1f",n)