blob: 053fc67dbdc72c46f4d5e9a8a9ec68abaf9414ae (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc;
clear;
k=2
lambda=5*10^-5 //wavlength in cm
theta=30 //angle in degrees
//calculations
e=(k*lambda)/sind(theta) //in cm
mprintf("No. of lines per centimeter = %.0e",(1/e)) //The answer provided in the textbook is wrong
|