# Simpsons 1/3 Rule C Program

By | August 2, 2016

Let’s understand the Simpson’s 1/3rd rule method in numerical analysis and implement Simpsons 1/3 rule in C programming language.

#### What is Simpsons 1/3 Rule?

The Simpson’s 1/3rd rule is used in numerical integration. Integration is the process of measuring the area under a function plotted on a graph. The Simpson’s 1/3rd rule was developed by a mathematician named Thomas Simpson.

The Simpson’s 1/3rd integration method is primarily used for numerical approximation of definite integrals. This specifically means that Simpson’s integration rule is used in complex integration calculations.

It is a method to approximately calculate the definite integral. The Simpson’s theorem is used to find the area under a given curve. The Simpson’s method corresponds to the 3-point Newton-Cotes quadrature rule as well.

The Simpson’s integration method is a little time consuming compared to other methods in numerical analysis and is also a little difficult to implement computationally.

#### Algorithm For Simpson’s 1/3 Rule

Note: This C Program for Simpson’s 1/3 rule is compiled with GNU GCC compiler on CodeLite IDE. However, it is compatible with all other operating systems.

#### Output

Note: This C Program for Simpsons Integration 1/3 rule is compiled with GNU GCC compiler on Linux Ubuntu operating system. However, it is compatible with all other operating systems.

#### Output

If you have any doubts about the implementation of Simpson’s 1/3rd method in C programming, let us know about it in the comment section. Find more about it on Wikipedia.

NUMERICAL METHODS C PROGRAMS
Newton-Raphson Method C Program
Weddle’s Rule Algorithm C Program
Euler’s Method C Program
Secant Method C Program
Bisection Method C Program
Gauss Seidel Method C Program
Simpson’s 3/8th Rule C Program
Picard’s Method C Program
Regula Falsi Method C Program
Bisection Method Algorithm and Flowchart
Trapezoidal Rule C Program

## 14 thoughts on “Simpsons 1/3 Rule C Program”

1. Apurva Dixit

Why to waste time by writing a C Program for Simpson’s Rule? Who sees such kinds of C Programs these days?

1. Tushar Soni Post author

You may be thinking right. But, once in a bluemoon, someone may search for these kind of C programs. My main motive is to make Internet a resourceful place. I believe if any article is correct and holds some value, it should be there on the internet.

2. Asha Bhosale

This code is too good. Thanks for such an easy program for Simpson’s Formula in C Programming

3. Akanksha Agarwal

Thanks for the integration by simpson 1/3 and 3/8 rule in c programming. This has made my day. 🙂

4. Jason

Why waste time? He’s not. For one thing, if you bothered to THINK, you’d have realized that by just reading the C code, you get the ALGORITHM that you can render in any language you choose. And it also happens that Pascal and C are the basis for a great many modern languages today. Not to mention C is still in use in embedded systems because of its speed and it’s ability in IO and operating system interfacing. A lot of drivers are written in C START THINKING!

5. Parag Vidhate

How can I solve Simpsons Rule in C Programming For 3/8th Rule? Can I modify this program?

6. Alfonso Guevara

To what function in is this being applied to? I only see see the Simpson rule

7. Mridula Singh

How to calculate the integral using the Weddles’s rule ?

8. Primo Raj

How to plot corresponding area of the integral in Simpson 1/3 rule with c program?