NormFunction

NormFunction

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

Details

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

Examples

open allclose all

Basic Examples  (2)

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

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

Use the -norm instead:

Use the 1-norm:

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

Use an -norm:

The error measure makes a difference in the solution quality:

Scope  (1)

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:

Introduced in 2003
 (5.0)