You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Types > Dew.Math.TVectorFunction Type
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Dew.Math.TVectorFunction Type

Defines vector function of several variables.

Syntax
C#
Visual Basic
public delegate void TVectorFunction([In] TVec X, [In] TVec Y, [In] double[] Consts, [In] object[] PConsts);

Optimization.cs

Parameters 
Description 
Function variables. 
Function results. 
Consts 
Array of additional constants which can be used in math formula. 
PConsts 
Array of additional constants (pointers) which can be used in math formula. 

Defines vector function of several variables.

Define the vector function f(x,y) with three components:

private void VecFun(TVec x, TVec f, double[] c, object[] o) { f[0] = x[0]*Math.Sqrt(x[0]*x[0]+x[1]*x[1]); f[1] = x[1]*Math.Sqrt(x[0]*x[0]+x[1]*x[1]); f[2] = x[0]*(x[1]-x[0])*(x[1]-x[0]); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!