You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Exp2 Method > Vector.Exp2 Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.Exp2 Method ()

Exponent base 2 (2^).

Pascal
function Exp2: TMtxVec; overload;

Calculate the exponent base 2 (2^) for all calling object elements in-place.

var a,b: Vector; begin a.SetIt(False,[1,2,3,4]); // a = [1,2,3,4] a.Exp2; // a = [2,4,8,16] a := Exp2(a); b.Exp2(a); //same as b := Exp2(a); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!