blob: 6a7139227768b5e4fab6c68c1d1375e394ba9349 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 2_21
clc();
clear;
//To find the no. of orders are visible
N=10520 //units in centimeters
lemda=5*10^-5 //units in centimeters
theta=90 //units in degrees
n=((1/N)*sin(theta*%pi/180))/lemda
printf("number of orders that are visible in granting spectra is %.0f",n)
|