Mathematical Methods

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HERO
    New Member
    • May 2007
    • 1

    Mathematical Methods

    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 stoppingconditi on F(Pi)<tolerance or 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<tolerance or I{Xrnew-Xrold}<toleranc e.
    SUCCESSIVE APPROXIMATION METHOD Xi+1=g(xi),rule to
    converge -1<differentiono f 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
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    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

    Comment

    • ahammad
      New Member
      • May 2007
      • 79

      #3
      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?

      Comment

      • ChaseCox
        Contributor
        • Nov 2006
        • 293

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

        Comment

        • sanctus
          New Member
          • Mar 2007
          • 84

          #5
          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

          Comment

          • ilikepython
            Recognized Expert Contributor
            • Feb 2007
            • 844

            #6
            Just wanted to mention, don't forget to check this link

            Comment

            • Savage
              Recognized Expert Top Contributor
              • Feb 2007
              • 1759

              #7
              Originally posted by ilikepython
              Just wanted to mention, don't forget to check this link
              Sneaky :)

              Savage

              Comment

              • emaghero
                New Member
                • Oct 2006
                • 85

                #8
                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++.

                Comment

                • ChaseCox
                  Contributor
                  • Nov 2006
                  • 293

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

                  Comment

                  Working...