Evaluates exponential function.
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.
#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 }
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|