summaryrefslogtreecommitdiff
path: root/3753/CH1/EX1.12
diff options
context:
space:
mode:
Diffstat (limited to '3753/CH1/EX1.12')
-rw-r--r--3753/CH1/EX1.12/Ex1_12.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3753/CH1/EX1.12/Ex1_12.sce b/3753/CH1/EX1.12/Ex1_12.sce
new file mode 100644
index 000000000..22d980fe8
--- /dev/null
+++ b/3753/CH1/EX1.12/Ex1_12.sce
@@ -0,0 +1,15 @@
+//Example number 1.12, Page number 1.38
+
+clc;clear;close
+
+
+//Variable declaration
+lamda=6500 // in Angstrom
+theta=30*%pi/180 // radian
+
+//Calculation
+a=lamda/sin(theta) // Angstrom
+
+//Result
+printf("Slit width value, a= %0.f Angstroms",a)
+printf("\nor a = %0.1f micron",(a*10^-4))