Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

NormFunction

NormFunction
is an option for functions such as FindFit and NDSolve which gives a function to be minimized in generating results.
  • NormFunction->f specifies that f[data] should be minimized in generating results.
Find a "best" fit for data using different norms:
The default is to find the best least-squares fit:
Use the Infinity-norm instead:
Use the 1-norm:
Use a 2-norm for estimating local error in solving an ODE:
Use an Infinity-norm:
The error measure makes a difference in the solution quality:
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 Infinity-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 Infinity-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]=
The norm is used for space and time in PDE solutions:
Plot the actual solution error, when using different error estimation norms:
A plot of the best solution:
New in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team