summaryrefslogtreecommitdiff
path: root/3869/CH2/EX2.1
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH2/EX2.1')
-rw-r--r--3869/CH2/EX2.1/Ex2_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3869/CH2/EX2.1/Ex2_1.sce b/3869/CH2/EX2.1/Ex2_1.sce
new file mode 100644
index 000000000..422ca1ea8
--- /dev/null
+++ b/3869/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,17 @@
+clear
+//
+//
+//
+
+//Variable declaration
+lamda=5*10**-5 //wavelength(cm)
+k=2 //order
+theta=30*%pi/180 //angle(radian)
+
+//Calculation
+e=k*lamda/sin(theta) //number of lines(cm)
+n=1/e //number of lines per centimeter
+
+//Result
+printf("\n number of lines per centimeter is %0.3f ",n)
+printf("\n answer given in the book is wrong")