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 --- 1397/CH6/EX6.12/6_12.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1397/CH6/EX6.12/6_12.sce (limited to '1397/CH6/EX6.12') diff --git a/1397/CH6/EX6.12/6_12.sce b/1397/CH6/EX6.12/6_12.sce new file mode 100755 index 000000000..b7a7c3af8 --- /dev/null +++ b/1397/CH6/EX6.12/6_12.sce @@ -0,0 +1,17 @@ +//clc(); +clear; +//To calculate the space of the reflecting plane and volume +lambda=3*10^-10; //wavelength in m +h=1; +k=0; +l=0; +theta=40; //glancing angle in degrees +n=1; //diffraction order +d=(n*lambda)/(2*sind(theta)); +printf("space of the reflecting plane in m is"); +disp(d); +x=sqrt(h^2+k^2+l^2); +a=d*x; +V=a^3; +printf("volume of unit cell in m^3 is"); +disp(V); -- cgit