+ Reply to Thread
Results 1 to 2 of 2

Bisection Method Troubles

  1. #1
    Registered User
    Join Date
    08-22-2017
    Location
    Virginia, United States
    MS-Off Ver
    16.0.8326.2076
    Posts
    16

    Bisection Method Troubles

    I have the following User Defined Function that I would prefer use the Bisection Method to arrive at a solution, but every time I try to implement it I freeze my Excel.

    The script below works, but it clearly uses more computing power than it should:

    Please Login or Register  to view this content.
    I would rather it look more like below, but as shown it is freezing my Excel:

    Please Login or Register  to view this content.
    Notice that I need the Absolute Value when using Bisection because I don't know from which direction I'll converge like I do in the first scenario. Adding the Abs() to my first script also freezes it.

    Can anyone shed some light on this? I feel like I'm missing something simple.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Bisection Method Troubles

    Please Login or Register  to view this content.
    10^-1000 is exactly zero in the double-precision floating-point format used by your computer and therefore Excel, and an absolute value can never be less than zero.
    Entia non sunt multiplicanda sine necessitate

+ 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. Bisection - non-linear equation
    By itam1995 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2015, 12:02 AM
  2. Optimisation using the bisection method
    By random_d in forum Excel General
    Replies: 2
    Last Post: 01-11-2015, 01:17 PM
  3. [SOLVED] Troubles with Find method
    By ddaann182 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2014, 06:33 PM
  4. Finding maximum using bisection/iterative method?
    By peepingtom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2014, 12:16 AM
  5. Bisection Method VBA Code Problem
    By szhengyi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2013, 06:08 AM
  6. Bisection method
    By rosh72851 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-25-2008, 03:01 PM
  7. GetObject method not work after Call Shell Method
    By ben in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2006, 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