Evaluate power function for single x.
Uses RegModels, Math387; procedure Example; var y: double; begin y := PowerEval([-5,3.5], 2.0); // y = -5.0*(2.0)^(3.5) = -56.568542495 end;
#include "Math387.hpp" #include "RegModels.hpp" void __fastcall Example(); { double y = PowerEval(OPENARRAY(double,(-5,3.5)),2.0); }