Bisection Method by using C++ PDF

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 PDF
Total Downloads 80
Total Views 156

Summary

Download Bisection Method by using C++ PDF


Description

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...


Similar Free PDFs