diff options
Diffstat (limited to '3768/CH5/EX5.5/Ex5_5.sce')
-rw-r--r-- | 3768/CH5/EX5.5/Ex5_5.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3768/CH5/EX5.5/Ex5_5.sce b/3768/CH5/EX5.5/Ex5_5.sce new file mode 100644 index 000000000..7320730a6 --- /dev/null +++ b/3768/CH5/EX5.5/Ex5_5.sce @@ -0,0 +1,15 @@ +//Example number 5.5, Page number 86 + +clc;clear; +close; + +//Variable declaration +V=344; //accelerated voltage(V) +n=1; +theta=60; //glancing angle(degrees) +//Calculation +theta=theta*%pi/180; //glancing angle(radian) +lamda=12.27/sqrt(V); +d=n*lamda/(2*sin(theta)); //spacing of crystal(angstrom) +//Result +printf("spacing of crystal is %.4f Angstrom",d) |