summaryrefslogtreecommitdiff
path: root/3411/CH2/EX2.9/Ex2_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '3411/CH2/EX2.9/Ex2_9.sce')
-rw-r--r--3411/CH2/EX2.9/Ex2_9.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3411/CH2/EX2.9/Ex2_9.sce b/3411/CH2/EX2.9/Ex2_9.sce
new file mode 100644
index 000000000..8f6449a63
--- /dev/null
+++ b/3411/CH2/EX2.9/Ex2_9.sce
@@ -0,0 +1,15 @@
+//Example 2_9
+clc();
+clear;
+//To calculate resolving power in second order
+//We have e*sin(theta)=k*lamda
+//We have e*0.2=k*lamda ->1
+//And e*0.3=(k+1)*lamda ->2
+//Subtracting one and two 3*0.1=lamda
+lamda=5000 //units in armstrongs
+lamda=lamda*10^-8 //units in cm
+e=lamda/0.1 //units in cm
+width=2.5 //units in cm
+N=width/e
+respower=2*N
+printf("Resolving power is %.f",respower)