summaryrefslogtreecommitdiff
path: root/3828/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3828/CH2/EX2.1/Ex2_1.sce')
-rw-r--r--3828/CH2/EX2.1/Ex2_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3828/CH2/EX2.1/Ex2_1.sce b/3828/CH2/EX2.1/Ex2_1.sce
new file mode 100644
index 000000000..4ad340e48
--- /dev/null
+++ b/3828/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,16 @@
+
+//Chapter 2 : Diffraction
+
+clear;
+
+//Variable declaration
+m=1 //first minimum
+lamda=6000*10**-10 //wavelength
+theta=(35*%pi/180) //angle in radians
+
+//Calculations
+a=(m*lamda)/sin(theta)/10**-6
+
+//Result
+mprintf("Width of the slit a= %.2f micro-m",a)
+