Your Ad Here Your Ad Here
Results 1 to 6 of 6

Thread: Can any one help me with this c++ programming question?

  1. #1
    Hi,

    Can anyone write a c++ programme which allows the user to solve the following non-linear equation:

    f(x) = sin(2 x / 5) - x + 1 = 0

    to an accuracy of 10^(-5) using both the Bisection Method and the Newton-Raphson method.
    The user has to input the appropriate initial estimates to the actual root.

    Thanks For The Help!

    ________________

    Visa India
    Indian Tourist Visa
    Tourist Visa to UK

  2. Internet, Programming and Graphics   -   #2
    vivitron 15's Avatar Poster
    Join Date
    Jan 2003
    Location
    North East England, UK
    Posts
    1,772
    LOL - that sounds suspiciously like a uni assignment!

    I can't do a jot of c++ programming, but thought I should post since you juse made me spit my smoothie at my pc!
    <insert signature here>

  3. Internet, Programming and Graphics   -   #3
    Haha... try Wolfram Alpha

    No one is going to program your homework assignment

  4. Internet, Programming and Graphics   -   #4
    LOL - that sounds suspiciously like a uni assignment!

    I can't do a jot of c++ programming, but thought I should post since you juse made me spit my smoothie at my pc!

  5. Internet, Programming and Graphics   -   #5
    #include <math.h>

    There's a start. Now look at the functions in that header file. They'll help...... I think.

  6. Internet, Programming and Graphics   -   #6
    GamesoulMaster's Avatar n00b
    Join Date
    Aug 2009
    Location
    All over the internet
    Posts
    17
    Way to necro the thread... >.>

    It was a foolish question anyway. The best answer would've been "Look at how it's done on paper, and then translate that to C++ using the very basic skills taught to you in the first month or two of the course/training"... lol.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •