Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms Data structs
Title: 3 Download
 Description: Achieve the dichotomy solve the equations. To prepare and use the following function: double SolveRoot (double (* pf) (double x), double a, double b, int n) here, pf points to a function f, f used to define the required solution of the equation f (x) = 0 , a and b are unknown solution x of the upper and lower bounds (ie, a < = x < = b), n is the cycle number. For example, if f (x) = x* x-2, then the SolveRoot (f, 1,2,100) will return 1.414213562373095, that is, the equation x* x = 2 solution. Dichotomy of the principle is repeatedly the range is divided into two equal intervals, then half of them containing solution instead of the interval, and so on, accuracy of the solution are met. It does this by checking f (a) and f (b) solutions of the symbol to determine whether the interval.
 To Search:
File list (Check if you may need any files):
3\3.dsp
.\3.dsw
.\3.ncb
.\3.opt
.\3.suo
.\Debug\solveroot.exe
.\.....\solveroot.ilk
.\.....\solveroot.obj
.\.....\solveroot.pch
.\.....\solveroot.pdb
.\.....\vc60.idb
.\.....\vc60.pdb
.\solveroot.cpp
.\solveroot.dsp
.\solveroot.dsw
.\solveroot.ncb
.\solveroot.opt
.\solveroot.plg
.\t.txt
.\Debug
3
    

CodeBus www.codebus.net