Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Tuning & Debugging >

Method

Method
is an option for various algorithm-intensive functions that specifies what internal methods they should use.
  • Typical settings include:
Automaticpick the method automatically
"name"use the method with the specified name
{"name",opt1val1,...}use the specified method with particular options
{"name1",Method→{"name2",...}}use a method and a submethod
{opt1val1,opt2val2,...}give options for methods
  • With the default setting Method->Automatic Mathematica will automatically try to pick the best method for a particular computation.
Find a nonlinear fit for exponential decay using a quasi-Newton method:
Solve a differential equation using an explicit Runge-Kutta method:
Plot the solution and its derivative:
Find a nonlinear fit for exponential decay using a quasi-Newton method:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
 
Solve a differential equation using an explicit Runge-Kutta method:
In[1]:=
Click for copyable input
Out[1]=
Plot the solution and its derivative:
In[2]:=
Click for copyable input
Out[2]=
Find a root in two dimensions using Newton's method with a trust-region step control:
This takes fewer evaluations than the default step control for this problem:
Number of steps and evaluations for an ODE using Runge-Kutta methods of various order:
Use of event location method using a backward differentiation formula base method:
Plot the solution up to the event x(t)=0:
Use of event locator with a deeply nested Method option:
New in 4 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team