summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.7/Ex2_7.sce
blob: 6b2e01acc174cd26cb70ee10a3a0da747cfe4451 (plain)
1
2
3
4
5
6
7
8
9
//Example 2_7
clc();
clear;
//TO find the highest order of the spectrum
N=5000                           //units in lines/cm
lemda=6000*10^-8                 //units in cm
theta=90                        //units in degrees
k=((1/N)*sin(theta))/lemda
printf("The highest order of the spectrum that can be seen is %.0f",k)