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

Exponent base 2 (2^).

Syntax
C#
Visual Basic
public TMtxVec Exp2();

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;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!