Skip to main content

C++ Program for Bisection Method to find the Roots of an Equation

download C++ source code file

Bisection Method is used to find the root of an equation. Let a function is given f(x)=0
we want to find the root, for this we need two points r, l (right and left) say
and the values of the function at these points is
' rv' (right point value)
'lv' (left point value)
make sure that the values rv and lv are of oposite sign( so that the root lies between 'r' and 'l')

then calculate a middle point (r+l)/2 say this 'm'
and the value of the function at middle point is to be calculated now, let it be 'mv'

now check , mv*rv>0 it means, the root lies  between 'l' and 'm' so now change 'r' to 'm'
again calculate a middle point , and so on.....
continuously you will go near to the root, the points 'r' and 'l' comes nearer 
at a point you will get  that 'r' and 'l' becomes very close or nearly equal. that point is the root. where f(r) and f(l) becomes approximately equal.

Comments

Popular posts from this blog

Solar Tracker Project without any programming

Solar Tracker System  Usually, we make solar panel fixed towards south direction. A solar panel produces a maximum of energy when the direction of the sun is directly in front of the panel. So we need a Sun tracker solar panel system. By using this device we can track the direction of the sun and Solar panel can be adjusted towards the Sun, the whole day. And we can extract the maximum of energy. Recently I published a complete article how can we make solar tracker in Hindi. You may like to r ead the full article on my blog: Solar Tracker Related Searches for this project can be: How to make a solar tracker DIY solar tracker dual-axis solar tracker Arduino solar tracker solar panel tracker solar tracker system solar tracker kit solar eclipse tracker 2017 single-axis solar tracker solar tracker Arduino solar panel sun tracker solar panel tracker system solar panels track...

Some Relationship Tips For Love Couple रिश्तों में Couples अक्सर कौन सी Mistakes करते हैं

Some Relationship Tips For Love Couple रिश्तों में Couples अक्सर कौन सी Mistakes करते हैं अपने सोना बाबू कि कामुकता (Sexual Excitment) भरी ख़ुशी कि लिए न्यूड पिक्चर भेजना/मांगना (Sending or Asking Nudes, may ruin your life) मेरे प्यारों मान लिया भले ही अपका बाबू सोना आपके फोटो (Nude Picture) का गलत उपयोग न करे। लेकिन जिस फ़ोन में फोटो क्लिक कर रहे हो/ या जिसमे भेज रहे हो, उसमे से अगर अपका फोटो किसी एप्प के द्वारा चुरा लिया जाये। एक-दिन जब इन्कॉग्निटो मोड में ब्राउज़िंग करते हुए खुद को देखोगे न तब समझ आएगा की गलती कब हुई थी। (Usualy all browse Adult Content in Incognito mode of the browser) तब तक तुम्हारी दुनिया बस चुकी होगी और उस वक्त समझ भी नहीं आएगा, क्या करे-क्या न करें। इसलिए अपनी भावनाओं पर काबू रखें और अपना व अपनी प्रेमी/प्रेमिका की प्राइवेसी का ख्याल रखें। ( Be Aware of your and your lover's privacy and be Safe ) ज्यादा ही प्यार (so called) आ रहा है, तो साधारण, चैट कर लो। (Sexting is fine) ये सोचकर की मेरे प्रेमी/प्रेमिका को पता नहीं चलेगा, छुप-छुपकर दूसरी जगह...

Online Captcha work without investment daily payment fraud website

There are many ways of Earning online as this is the time of the Internet. We can earn a lot of money by working online but it is not so easy too, but that doesn't mean impossible. people are earning huge money from Online. but there are a lot of the websites making people fool and looting money from them. so if you are looking for the genuine methods of earning online you are at right place. what I'm going to describe in this article: Is it Really Possible to Earn a Good Income Online? Genuine Ways to earn online. Be aware of the Fraud; Online Typing Jobs-Scam-Fraud website Is it Really Possible to earn a Good Income Online? in one word my answer is "Yes" there are a lot of people who work online, earning a good income. They work from their workplace. They are their own boss of their work. But like a Job, they give full time or part-time to work on a daily basis. It is not like you work to earn online for 2,3 or 4 days and not getting results then .....