summaryrefslogtreecommitdiff
path: root/1271/CH2/EX2.40/example2_40.sce
blob: e31f566e84daf0dc538622ed637bc19ef5f26476 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc 
// Given that
lambda = 5.5e-7 // wavelength of light in meter
a = 5 // diameter of objective lens of telescope in meter
R = 3.8e8 // distance of moon in meter
// Sample Problem 40 on page no. 2.53
printf("\n # PROBLEM 40 # \n")
theta = (1.22 * lambda) / a // calculation for angle 
x = (R * theta) // calculation for the separation of two points on moon
printf("\n Standard formula used \n theta = (1.22 * lambda) / a. \n x = (R * theta). \n")
printf("\n The separation of two points on moon = %f meter",x)