From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3411/CH5/EX5.5.u1/Ex5_5_u1.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 3411/CH5/EX5.5.u1/Ex5_5_u1.sce (limited to '3411/CH5/EX5.5.u1/Ex5_5_u1.sce') diff --git a/3411/CH5/EX5.5.u1/Ex5_5_u1.sce b/3411/CH5/EX5.5.u1/Ex5_5_u1.sce new file mode 100644 index 000000000..465d3c061 --- /dev/null +++ b/3411/CH5/EX5.5.u1/Ex5_5_u1.sce @@ -0,0 +1,9 @@ +//Example 5_5_u1 +clc(); +clear; +//To find out the interplanar spacing of the reflecting planes of the crystal +theta=28 //units in degrees +lamda=0.12 //units in nm +n=2 +d=(n*lamda)/(2*sin(theta*(%pi/180))) +printf("The interplanar spacing of the reflecting planes of the crystal is d=%.2fnm",d) -- cgit