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

Evaluate linear function for single x.

Uses RegModels, Math387;
procedure Example;
  var y: double;
begin
  y := LineEval([1,3], 2.5);
  // Res = 1+ 3*2.5 = 8.5
end;
#include "Math387.hpp"
#include "RegModels.hpp"
void __fastcall Example();
{
  double y = LineEval(OPENARRAY(double,(1.0, 3.0)),2.5);
}
Copyright (c) 1999-2025 by Dew Research. All rights reserved.