You must supply this method to calculate the values of the function Fx and its first derivatives Fxj at any point x. It should be tested separately before being used in conjunction with e04ly (see the E04 class).

Syntax

C#
public delegate void E04LY_FUNCT2(
	int n,
	double[] xc,
	ref double fc,
	double[] gc
)
Visual Basic
Public Delegate Sub E04LY_FUNCT2 ( _
	n As Integer, _
	xc As Double(), _
	ByRef fc As Double, _
	gc As Double() _
)
Visual C++
public delegate void E04LY_FUNCT2(
	int n, 
	array<double>^ xc, 
	double% fc, 
	array<double>^ gc
)
F#
type E04LY_FUNCT2 = 
    delegate of 
        n : int * 
        xc : float[] * 
        fc : float byref * 
        gc : float[] -> unit

Parameters

n
Type: System..::..Int32
On entry: the number n of variables.
xc
Type: array<System..::..Double>[]()[][]
On entry: the point x at which the function and its derivatives are required.
fc
Type: System..::..Double%
On exit: the value of the function F at the current point x.
gc
Type: array<System..::..Double>[]()[][]
On exit: gc[j-1] must be set to the value of the first derivative Fxj at the point x, for j=1,2,,n.

See Also