By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,442 Members | 1,437 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,442 IT Pros & Developers. It's quick & easy.

Mathematical Methods

P: 1
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
May 25 '07 #1
Share this Question
Share on Google+
8 Replies


Expert 10K+
P: 11,448
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.

Or you could give it a try yourself ...

kind regards,

Jos
May 25 '07 #2

P: 79
IF YOU HAVE NO IDEA HOW TO CODE AND YOU JUST WANT TO USE THIS TO DO YOUR MATH/NUMERICAL METHODS HOMEWORK, YOU'RE BETTER OFF LEARNING MATLAB.

What's with the caps?
May 25 '07 #3

ChaseCox
100+
P: 294
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.
Jun 11 '07 #4

P: 84
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
Jun 11 '07 #5

ilikepython
Expert 100+
P: 844
Just wanted to mention, don't forget to check this link
Jun 11 '07 #6

Savage
Expert 100+
P: 1,764
Just wanted to mention, don't forget to check this link
Sneaky :)

Savage
Jun 11 '07 #7

emaghero
P: 85
All the numerical methods you require can be found atwww.nr.com . If you know how to program in C/ C++ you will find the algorithms here.

If you do not wish to learn to program then buy one of the following: Mathematica/ MatLab/ Maple. It's probably cheaper to learn C++.
Jun 12 '07 #8

ChaseCox
100+
P: 294
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++.

MatLab put the Mars Rover on Mars.
Jun 12 '07 #9

Post your reply

Sign in to post your reply or Sign up for a free account.