summaryrefslogtreecommitdiff
path: root/3014/CH3/EX3.1/Ex3_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3014/CH3/EX3.1/Ex3_1.sce')
-rwxr-xr-x3014/CH3/EX3.1/Ex3_1.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3014/CH3/EX3.1/Ex3_1.sce b/3014/CH3/EX3.1/Ex3_1.sce
new file mode 100755
index 000000000..198388a30
--- /dev/null
+++ b/3014/CH3/EX3.1/Ex3_1.sce
@@ -0,0 +1,9 @@
+clc
+//given that
+d = 2.82 // crystal spacing in angstrom
+n = 2 // order for longest passing wavelength
+theta = 90 // angle for longest passing wavelength
+printf("Example 3.1")
+lambda = 2*d*sin(theta*%pi/180)/n // Calculation of longest wavelength
+
+printf("\n Longest wavelength is %f angstrom. \n\n\n",lambda)