double __fastcall y(
const TVec * Parameters,
const TVec * Constants, System::TObject*
const * ObjConst,
const int ObjConst_Size)
{
return Consts[0]*Sin(Consts[1]+2.0*Parameters[0]);
}
...
// calculate y=y(2.5) and set a,b, constants to 3 and 2 respectively
sVector parsVec, constVec;
parsVec.SetIt(1,
false, OPENARRAY(
double,(2.5)));
constVec.SetIt(2,
false, OPENARRAY(
double,(3,2)));
y(parsVec, constVec, NULL,-1);