+ Reply to Thread
Results 1 to 9 of 9

Newton's iteration for multiple rows.

  1. #1
    Registered User
    Join Date
    02-15-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    43

    Newton's iteration for multiple rows.

    I know the title is somewhat vague, sorry. But yeah, here's the thing.

    I'm running multiple Newton's iteration rows for a function poly(x) = a*x^b+c*x+d. I however need it to work for multiple rows;

    recalc help.jpg

    I don't know how to code it such that the =newton() tag would recalculate it for the values depending on the row. I hope you get what I mean. .-.

    Thanks a lot~!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Newton's iteration for multiple rows.

    Perhaps post the sheet and the code instead of a useless picture? Thx

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,393

    Re: Newton's iteration for multiple rows.

    You need to pass arguments through the hierarchy of functions rather than accessing information directly from the sheet. You also need to review what "scope of a variable" means. As coded, there are two "instances" of the variable x with different scope -- one x for function poly and one x for function newton, and they will likely have different values.

    So --
    Please Login or Register  to view this content.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    02-15-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Newton's iteration for multiple rows.

    I'm really sorry but I didn't get what you said I'm not really much of a programmer

    What I'm after is that if I am to compute for =newton() in cell E2, a = A1, b = B1, c = C1, d = D1; likewise in E2, a = A2, b = B2, c = C2, d = D2

  5. #5
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Newton's iteration for multiple rows.

    The picture makes not enough sense off what the output should be..
    What is the formula that you want to create. Don't use a picture, add a workbook with an example of write out the formula.

  6. #6
    Registered User
    Join Date
    02-15-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Newton's iteration for multiple rows.

    newtonrandom.xlsm

    I managed to make a Newton's iteration function. I just want that a, b, c, and d to be defined depending on the cells that I wanted.

  7. #7
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Newton's iteration for multiple rows.

    Modified file to MrShorty means to say....
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-15-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Newton's iteration for multiple rows.

    Thanks. I shall be studying how you did it. :D

  9. #9
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Newton's iteration for multiple rows.

    If your problem is solved mark tread [SOLVED] (tread tools above first post.
    If you think if a post helped you, *Add Reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple iteration of a date stamp
    By Northbest11 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-16-2013, 01:20 PM
  2. Goal Seek & Newton-Raphson
    By posto5 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2013, 01:49 AM
  3. request newton raphson code
    By hamidciv in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2012, 03:34 PM
  4. Created VBA using Newton's Method
    By BFlick11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2010, 01:39 PM
  5. Dynamic Iteration: looping through changing number of rows
    By Esection in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2010, 11:50 AM

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1