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

Syntax

C#
public delegate void E04KY_FUNCT2(
	int n,
	double[] xc,
	out double fc,
	double[] gc
)
Visual Basic
Public Delegate Sub E04KY_FUNCT2 ( _
	n As Integer, _
	xc As Double(), _
	<OutAttribute> ByRef fc As Double, _
	gc As Double() _
)
Visual C++
public delegate void E04KY_FUNCT2(
	int n, 
	array<double>^ xc, 
	[OutAttribute] double% fc, 
	array<double>^ gc
)
F#
type E04KY_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 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