summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.5/Ex2_5.sce
blob: 2ddfb81437642fe75fb38dd335051f11a922f75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 2_5
clc();
clear;
//To find the angle of separation
lemda1=5016*10^-8                          //units in cm
lemda2=5048*10^-8                          //units in cm
k=2
e=2.54/15000                              //units in cm
theta1=asin((2*lemda1)/e)*180/%pi
theta2=asin((2*lemda2)/e)*180/%pi
theta=(theta2-theta1)
theta=theta*100
theta=(theta*101)/60
printf("The angle of separation is %f degrees",theta)
//In text book the answer is printed wrong as 16 Minutes correct answer is 45 minutes