BUILT-IN WOLFRAM LANGUAGE SYMBOL

NormFunction

NormFunction
is an option for functions such as FindFit and NDSolve which gives a function to be minimized in generating results.

DetailsDetails

  • NormFunction->f specifies that should be minimized in generating results.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Find a "best" fit for data using different norms:

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

The default is to find the best least-squares fit:

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

Use the -norm instead:

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

Use the 1-norm:

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

Use a 2-norm for estimating local error in solving an ODE:

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

Use an -norm:

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

The error measure makes a difference in the solution quality:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2003
(5.0)