summaryrefslogtreecommitdiff
path: root/3828/CH2/EX2.10/Ex2_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3828/CH2/EX2.10/Ex2_10.sce')
-rw-r--r--3828/CH2/EX2.10/Ex2_10.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3828/CH2/EX2.10/Ex2_10.sce b/3828/CH2/EX2.10/Ex2_10.sce
new file mode 100644
index 000000000..1ea01bf74
--- /dev/null
+++ b/3828/CH2/EX2.10/Ex2_10.sce
@@ -0,0 +1,16 @@
+
+//Chapter 2 : Diffraction
+
+clear;
+
+//Variable declaration
+lamda=6.5*10**-7 //wavelength
+n=1 //first order
+theta=(15*%pi/180) //angle in radians
+
+//Calculations
+d=(n*lamda)/sin(theta)/10**-6
+
+//Result
+mprintf("Grating element= %.3f*10**-6 m",d)
+