summaryrefslogtreecommitdiff
path: root/3828/CH2/EX2.4/Ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3828/CH2/EX2.4/Ex2_4.sce')
-rw-r--r--3828/CH2/EX2.4/Ex2_4.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3828/CH2/EX2.4/Ex2_4.sce b/3828/CH2/EX2.4/Ex2_4.sce
new file mode 100644
index 000000000..bb219d5dc
--- /dev/null
+++ b/3828/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,18 @@
+
+//Chapter 2 : Diffraction
+
+clear;
+
+//Variable declaration
+a=2*10**-4 //slit width
+lamda=6*10**-7 //wavelength
+
+//Calculations
+theta=asin(lamda/a)
+TLW=4*theta/10**-2
+theta1=asin(lamda/a)/10**-3
+
+//Result
+mprintf("Total linear width= %.1f cm",TLW)
+mprintf("\nAngular position of the minima= %d*10**-3 radian",theta1)
+