From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3669/CH3/EX3.8/8.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 3669/CH3/EX3.8/8.sce (limited to '3669/CH3/EX3.8/8.sce') diff --git a/3669/CH3/EX3.8/8.sce b/3669/CH3/EX3.8/8.sce new file mode 100644 index 000000000..330997620 --- /dev/null +++ b/3669/CH3/EX3.8/8.sce @@ -0,0 +1,11 @@ +//Variable declaration +theta=90; //angle(degrees) +lamda=1.5; //wavelength(angstrom) +d=1.6; //spacing(angstrom) + +//Calculation +theta=theta*%pi/180; //angle(radian) +n=2*d*sin(theta)/lamda; //order of diffraction + +//Result +printf('order of diffraction is %0.3f \n',int(n)) \ No newline at end of file -- cgit