Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop ADO-ODBC
Title: 4 Download
 Description: 1. Achieve the dichotomy solve the equations. Equation f double SolveRoot (double (* pf) (double x), double a, double b, int n) here, pf points to a function f, f used to define the requirements for the solution of (x) = 0: write and use the following function , a and b are unknown solution x of the upper and lower bounds (i.e., a < = x < = b), n is the number of cycles. For example, if f (x) = x* x-2, then SolveRoot (f, 1,2,100) returns 1.414213562373095, i.e., the equation for x* x = Solution 2. Dichotomy principle is repeatedly divided into two equal sections to the interval, then the solution which contains half the place of the range, and so on, to get to meet the accuracy of the solution. It does this by checking f (a) and f (b) of the symbol to determine whether the interval Solutions. Run results: The first behavior: SolveRoot (f, 1,2,10) = 1.5 among several lines of the last acts: The exact SolveRoot = 1.414213562
 Downloaders recently: [More information of uploader 光]
 To Search:
File list (Check if you may need any files):
 

4\6.cpp
.\c++_ch06_06.vcxproj
.\c++_ch06_06.vcxproj.filters
.\Debug\6.obj
.\.....\c++_ch06_06.lastbuildstate
.\.....\c++_ch06_06.log
.\.....\CL.read.1.tlog
.\.....\CL.write.1.tlog
.\.....\link-cvtres.read.1.tlog
.\.....\link-cvtres.write.1.tlog
.\.....\link-rc.read.1.tlog
.\.....\link-rc.write.1.tlog
.\.....\link.read.1.tlog
.\.....\link.write.1.tlog
.\.....\vc110.idb
.\.....\vc110.pdb
.\Debug
4
    

CodeBus www.codebus.net