Title | Bisection Method by using C++ |
---|---|
Author | Anonymous User |
Course | Principles of Management |
Institution | National College of Business Administration and Economics |
Pages | 3 |
File Size | 120.1 KB |
File Type | |
Total Downloads | 80 |
Total Views | 156 |
Download Bisection Method by using C++ PDF
Bisection Method by using C++ Language Question = x^3-x^2+x-7 1. Program Code #include using namespace std; //function used is x^3-x^2+x-7 double func(double x) { return x * x* x - x * x + x - 7 ; } double e = 0.01; double c; void bisection(double a, double b) { if (func(a) * func(b) >= 0) { cout = e) { c = (a + b) / 2; if (func(c) == 0.0) { cout...