Discussion Overview
The discussion revolves around finding an efficient routine for performing iterations in Mathematica to solve for a variable 'a' that results in an output 'b' equal to zero, using a black-box function. Participants explore various numerical methods for root-finding, including the bisection method and the secant method, while addressing the challenges posed by the unknown nature of the function.
Discussion Character
- Exploratory
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant questions the feasibility of finding 'a' since the relationship between 'a' and 'b' is unknown, suggesting that there is no guarantee that any 'a' will yield 'b=0'.
- Another participant suggests running evaluations over an interval and plotting results, proposing interpolation to analyze the slope of the interpolant.
- Several participants discuss the bisection method, noting its requirement to bracket the zero and its slower convergence compared to other methods.
- One participant proposes estimating the derivative of the black-box function to apply a modified iteration method, contingent on the function being smooth enough.
- There is a suggestion to use the secant method as an alternative to the bisection method, especially if the derivative cannot be computed directly.
- Concerns are raised about the unknown nature of the function, with some participants emphasizing the potential unpredictability of the black-box function, including the possibility of it being non-single valued or a random number generator.
- One participant clarifies that the function is well-behaved and single-valued, indicating that the main issue is efficiency rather than feasibility, and notes improved convergence with the secant method.
- A link to an exhaustive list of root-finding algorithms is provided for further exploration.
Areas of Agreement / Disagreement
Participants express differing views on the appropriateness of various numerical methods given the unknown characteristics of the function. While some advocate for the bisection method, others argue for the secant method or suggest alternative approaches, indicating that no consensus exists on the best method to use.
Contextual Notes
Participants acknowledge limitations related to the unknown nature of the black-box function, including its potential non-single valued behavior and unpredictability, which complicates the application of numerical methods.