You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > IntPower Method > TMtxVec.IntPower Method (Integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.IntPower Method (Integer)

Power (integer exponent).

Pascal
function IntPower(Exponent: Integer): TMtxVec; overload;

Calculate the power ^(Exponent) for all caling object elements using the integer parameter Exponent. For non integer exponents, the Power and PowerVec methods can be used.

var a: TVec; begin CreateIt(a); try a.SetIt(False,[1,2,3,4]); a.IntPower(3); finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!