You are on page 1of 11

NUMERICAL

COMPUTING
PRESENTATION
GROUP MEMBERS

Hassan Qazi -164


Shehbaz Khan - 158
Abdullah Mehar - 141
TOPICS
SIMPSON 1/3 RULE
SIMPSON 3/8 RULE
STIRLING FORMULA
LAGRANGE FORMULA
SIMPSON 1/3 RULE
 Simpson’s 1/3rd rule is an extension of the trapezoidal rule in which
the integrand is approximated by a second-order polynomial.
Simpson rule can be derived from the various way using Newton’s
divided difference polynomial,  Lagrange polynomial and the
method of coefficients. Simpson’s 1/3 rule is defined by:

 Formula:-

 ∫ab f(x) dx = h/3 [(y0 + yn) + 4(y1 + y3 + y5 + …. + yn-1) + 2(y2 + y4 +
y6 + ….. + yn-2)]
MATLAB CODE
SIMPSON 3/8 RULE

 Another method of numerical integration is called “Simpson’s 3/8 rule”. It is


completely based on the cubic interpolation rather than the quadratic
interpolation. Simpson’s 3/8 or three-eight rule is given by

 Formula:-

 [(y0 + yn) + 3(y1 + y2 + y4 + y5 + …. + yn-1) + 2(y3 + y6 + y9 + …..


MATLAB CODE
STIRLING FORMULA

 Stirling formula or Stirling approximation is used to finding the approximate value


of factorial of a given number ( n! Or ΓΓ (n) for n >> ).  It was named after James
Stirling. Stirling formula is a good approximation formula, it helps in finding the
factorial of larger numbers easily and it leads to exacts results for small values of
any number say ‘n’.

Formula

 Ln n! ≈≈ n ln n-n
 Or 
 N! = √(2×π×n)(n/e)^n  
LAGRANGE INTERPOLATION
FORMULA
 Lagrange Interpolation Formula finds a polynomial called Lagrange Polynomial
that takes on certain values at an arbitrary point. It is an nth degree polynomial
expression to the function f(x). The interpolation method is used to find the new
data points within the range of a discrete set of known data points.
 Lagrange Interpolation Formula For Nth
LAGRANGE INTERPOLATION
FORMULA
THANK YOU

You might also like