blob: fb4f2173f71ab363fe1b6f029ec986a880db5032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example number 1.16, Page number 1.39
clc;clear;close
//Variable declaration
theta=90*%pi/180 //theta=90 degrees to get maximum number of orders assume
lamda=5890*10**-10 // in m
aplusb=2*10**-6 //micro mts to mts
//Calculation
n=(aplusb*sin(theta))/lamda // order
//Result
printf("Maximum number of orders=%d",n)
|