Skip to main content

Posts

Showing posts from April, 2018

MATLAB Programs - Numerical Methods and Optimization

Roots of Equation - BiSection Method Bisection method is one of the numerical methods to find roots of the equation, included in the syllabus of Third Year Mechanical Engineering course for colleges under University of Pune. The bisection method in mathematics is a root-finding method that repeatedly bisects an interval and then selects a subinterval in which a root must lie for further processing. It is a very simple and robust method, but it is also relatively slow. Because of this, it is often used to obtain a rough approximation to a solution which is then used as a starting point for more rapidly converging methods. Let us consider an example  Figure 1: Polynomial function in f(x)=0 form. To solve polynomial function, it has to be converted into f(x) = 0 form, where all the terms containing powers of x and constant should be on the left-hand side of the equal to sign. Create a function file in MATLAB as shown in figure 1, having a polynomial equation in...