+ Reply to Thread
Results 1 to 8 of 8

calculation iterations

  1. #1
    Registered User
    Join Date
    04-08-2019
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    4

    calculation iterations

    Hi I calculated Θ,f(Θ),f'(Θ) but I do not know if is possible calculation method Θn if yes how should it ?
    Attached Images Attached Images

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

    Re: calculation iterations

    I'm not sure I understand your question. If I understand the pictured document, it seems like a basic Newton-Raphson type algorithm for finding theta.

    The "standard" approach to NR type algorithms in Excel is to use Goal Seek or Solver, since this kind of root finding algorithm is already programmed into those utilities.
    Goal Seek: https://support.office.com/en-us/art...3-4f369d6e66c7
    Solver: https://support.office.com/en-us/art...B-F63E45925040
    I generally prefer to use Solver over Goal Seek, as I find that Solver's algorithms seem more robust. The main advantage here is that you don't need to program f' or other details of the root finding algorithm. You need only enter your best first guess at theta, then enter f(theta), and invoke Solver/Goal Seek to set f(theta) to a value of 0 by changing theta. Solver/Goal Seek will take care of f'.

    If you are not allowed to use these built in utilities or for whatever reason you feel that you want to program your own NR algorithm, I will refer you to this tutorial I put together https://www.excelforum.com/tips-and-...ind-roots.html . The spreadsheet only versions use circular references to perform the NR iteration. If you prefer, there is also an example (last post) of a VBA UDF that uses the NR algorithm.

    Does that help?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    04-08-2019
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    4

    Re: calculation iterations

    of course you help me I'll think you good unerstood my question I need find theta and yes this is method Newthona .I add the file
    Attached Files Attached Files

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

    Re: calculation iterations

    You did not say which approach you wanted to use, so I tried using Goal seek:

    1) Enter 1.487 (or similar) into Q13.
    2) Call Gaol Seek and tell it to:
    2a) Set cell: Q15
    2b) To value: 0
    2c) By changing cell: Q17

    And it spit out a result (theta is a little larger than 1.487). Will that work?

  5. #5
    Registered User
    Join Date
    04-08-2019
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    4

    Re: calculation iterations

    hm Could you send me done the file

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

    Re: calculation iterations

    I can't, but I made no significant change to your file. The only change I made was to overwrite the formula in Q15 with a value close to its current value (Enter 1.487 into Q15 or copy -> paste special -> as values). I assume you should have no trouble entering a value into Q15, so what difficulty are you having in calling and executing the Goal Seek command?

  7. #7
    Registered User
    Join Date
    04-08-2019
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    4

    Re: calculation iterations

    eh
    I did not know what the word means "Goal Seek command" and where it find , that's why I had a problem
    I've translated and done thanks

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

    Re: calculation iterations

    Language barriers can be a problem on an international forum like this. Glad you got it figure out.

+ 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. Iterations
    By bjcowen9000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2013, 04:14 AM
  2. equations and iterations
    By zdej in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2013, 05:05 PM
  3. Turning on iterations
    By Davidns in forum Excel General
    Replies: 4
    Last Post: 03-26-2012, 05:18 AM
  4. Simple iterations
    By dunnoaname in forum Excel General
    Replies: 4
    Last Post: 03-19-2011, 02:46 AM
  5. Iterations
    By Bunches in forum Excel General
    Replies: 1
    Last Post: 04-24-2008, 09:16 AM
  6. Iterations reurning a #Div/0
    By trilogy in forum Excel General
    Replies: 5
    Last Post: 03-27-2007, 07:11 PM
  7. [SOLVED] Excel-97 SR-1 calculation=automatic iterations Workbook_Open
    By Christoffur050@Verizon.Net in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2005, 11:05 PM

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