Professional Documents
Culture Documents
Theory
Theory
Simpson’s rule methods are more accurate than the other numerical
approximations and its formula for n+1 equally spaced subdivision is given by:
b
This rule is more accurate than the standard method, as it uses one more functional
value. For the 3/8 rule, the composite Simpson’s 3/8 rule also exists which is
similar to the generalized form. The 3/8 rule is known as Simpson’s second rule of
integration.
HAVERSINE FORMULA
The Haversine formula calculates the shortest distance between two points on a
sphere using their latitudes and longitudes measured along the surface. It is
important for use in navigation. The haversine can be expressed in trigonometric
function as:
2 θ
have r sine ( θ )=sin ( )
2
d
The haversine of the central angle (which is r ) is calculated by the following
formula:
where r is the radius of the earth(6371 km), d is the distance between two points,
Φ 2 , Φ1 is the latitude of the two points, and λ 1 , λ2 is the longitude of the two
points respectively.
Solving d by applying the inverse haversine or by using the inverse sine function,
we get:
Or
−1
d=2rsin ¿