Method

Method
is an option for various algorithm-intensive functions that specifies what internal methods they should use.

DetailsDetails

  • Typical settings include:
  • Automaticpick the method automatically
    "name"use the method with the specified name
    {"name",opt1->val1,}use the specified method with particular options
    {"name1",Method->{"name2",}}use a method and a submethod
    {opt1->val1,opt2->val2,}give options for methods
  • With the default setting Method->Automatic, the Wolfram Language will automatically try to pick the best method for a particular computation.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

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 RungeKutta method:

In[1]:=
Click for copyable input
Out[1]=

Plot the solution and its derivative:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 1999
(4.0)
| Updated in 2007
(6.0)