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

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.