Represents a function returning a real number that
has one integer parameter and one real argument.
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Delegate Function ParameterizedRealFunction ( _ n As Integer, _ x As Double _ ) As Double |
| C# |
|---|
public delegate double ParameterizedRealFunction ( int n, double x ) |
| C++ |
|---|
public delegate double ParameterizedRealFunction ( int n, double x ) |
Parameters
- n (System.Int32)
- An integer parameter.
- x (System.Double)
- A real number.
Return Value
A real number.
Remarks
Use a ParameterizedRealFunction delegate to encapsulate the
evaluation of a parameterized class of real functions with one real
argument. An integer parameter selects which function is to be
evaluated.
Many calculations involve the repeated evaluation of one or more user-supplied functions. Numerical integration and differentiation and finding zeroes of functions are common examples. In the .NET framework, this functionality is implemented using delegates.