InterpolateRoot


searches for a numerical solution to the equation using and as the first two values of x.

DetailsDetails

  • To use , you first need to load the Function Approximations Package using Needs["FunctionApproximations`"].
  • gives the solution as a rule of the form .
  • will search for a root of the equation expr==0.
  • searches for a solution using inverse cubic interpolation of the last four data points. It does not use derivative information.
  • works very slowly when the solution is a multiple root.
  • is not as robust as FindRoot. However, it is useful when the location of the root is approximately known, each evaluation of the function is expensive, and high precision is desired.
  • If the equation and starting values are real, then will search only for real roots, otherwise it will search for complex roots.
  • The following options can be given:
  • AccuracyGoalAutomaticthe accuracy sought
    MaxIterations15maximum number of iterations to use
    ShowProgressFalsewhether progress is to be monitored
    WorkingPrecision40the precision to use in internal computations
  • The setting for AccuracyGoal refers to the accuracy of the root rather than the magnitude of the residual at the root.
  • The precision used in internal computations typically varies from a little more than machine precision at the beginning to the setting for WorkingPrecision at the end.
  • The setting for WorkingPrecision may be exceeded to achieve the desired AccuracyGoal.
  • If does not succeed in finding a solution to the desired accuracy within MaxIterations steps, it returns the most recent approximation found.
  • With ShowProgress->True, will print followed by , where:
  • accuracyestimate of the accuracy of the current approximation to the solution
    xcurrent approximation to the solution
    precisioncurrent working precision
    extraprecisionnumber of extra digits of precision being used
    deltapredicted change in the approximation during the next iteration
New to Mathematica? Find your learning path »
Have a question? Ask support »