diff options
Diffstat (limited to '3768/CH4/EX4.2/Ex4_2.sce')
-rw-r--r-- | 3768/CH4/EX4.2/Ex4_2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3768/CH4/EX4.2/Ex4_2.sce b/3768/CH4/EX4.2/Ex4_2.sce new file mode 100644 index 000000000..5350703d7 --- /dev/null +++ b/3768/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,14 @@ +//Example number 4.2, Page number 66 + +clc;clear; +close; + +//Variable declaration +d=3.04*10**-10; //lattice spacing(m) +n=3; //order +lamda=0.79*10**-10; //wavelength(m) +//Calculation +theta=asin(n*lamda/(2*d)); //glancing angle(radian) +theta=theta*180/%pi; //glancing angle(degrees) +//Result +printf("glancing angle is %.3f degree",theta) |