HI , WOULD U PLZ HELP ME IN GETTING CODES IN C AND C++ FOR SOLVING THE FOLLOWING NUMERICAL METHODS to find an approximate root:
BISECTION METHOD stoppingcondition F(Pi)<toleranceor Ibi-aiI<tolerance
SECANT METHOD NEW APPROXIMATE ROOTxi+1=Xi+1-{f(xi)(xi-1-xi)/{f(xi-1)-f(xi) stopping conditionF(xi+1)<tolerance or {xi+1-xi}/{xi+1
FALSE POSITION METHOD Xr=X-{{F(Xu)(Xu-Xl)}/f(Xu)-f(Xl)}STOPPING CONDITION {Xrnew-Xrold}/Xrnew<toleranceor I{Xrnew-Xrold}<tolerance.
SUCCESSIVE APPROXIMATION METHOD Xi+1=g(xi),rule to
converge -1<differentionof g(x)<1 stopping condition lXi+1-Xil<toleranceor
f(xi)<tolerance
MODIFIED SUCCESSIVE APPROXIMATION
GAUSS ELIMINATION
GAUSS JORDAN STEPS :choose the pivot with max absolute number in such acolumn
pivot column elements will be copied as itis, pivot row elements changes to -element/pivot other elemnts apply rectangular rule
GAUSS JORDAN FOR INTEGRALMATRIX steps:choose the pivot with max absolute number in such acolumn
pivot column elements will be copied as itis, pivot row elements changes to -element ,other elemnts apply rectangular rule
I don't think many people here are willing to your homework for you. Either go
to www.rentacoder.com and pay for the job or google for "lapack" or "linpack",
both are two extremely optimized libraries that can do the job for you and much
much more. Originally they were written in Fortran but both are ported to a
plethora of other languages; check them out.
MatLab utilizes leinpack and isopack sp? But can be quite intemedating, since a great knowledge of Linear Algebra i.e. Matrix Operations --> [MatLab = Matrix Laboratory...] is needed to effectivley use the program. If you need help with coding these problems, you could post specific questions, but no one will just give you answers, the time to go through each of these would be emmense.
About any mathematical method you'll fing here (thanks to the person who gave me this link a while ago while looking for numerical solutions to fresnel integrals), but if you are starting to program you might be scared off (just in case): numerical recipes
I would appreciate people not saying you do not have to "program" in MatLab or Mathematica. Unless you are intimate with these programs, you have no clue about what is required. I have written pages and pages of code in MatLab and Mathematica alike. Studying Computational Physics eventually requires a language a little more advanced than Fortran or C++.