You are here: Symbol Reference > RegModels Namespace > Functions > RegModels.ExpEval Function
Stats Master VCL
ContentsIndex
PreviousUpNext
RegModels.ExpEval Function

Evaluates exponential function.

Pascal
function ExpEval(Const B: Array of double; X: double): double; overload;

b[0]*Exp(b[1]*X) for given value X and parameters in B array.

Evaluate exponential function for single x.

Uses Math387, RegModels;
var y: double;
begin
  y := ExpEval([3,-0.5], 1.5);
  // Res = 3*Exp(-0.5*1.5) = 1.4170996582
end;
#include "Math387.hpp"
#include "RegModels.hpp"
void __fastcall Example();
{
  double y = ExpEval(OPENARRAY(double,(3.0, -0.5)),1.5);
  // y = 3*Exp(-0.5*1.5) = 1.4170996582
}
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!