You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > IntPower Method > Matrix.IntPower Method (int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.IntPower Method (int)

Power (integer exponent).

Syntax
C#
Visual Basic
public TMtxVec IntPower(int Exponent);

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,b: Matrix; begin a.SetIt(2,2,False,[1,2,3,4]); a.IntPower(3); //same as: a := IntPower(a,3); b.IntPower(a,3); //same as: b := IntPower(a,3); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!