You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > Exp2 Method > TMtxVec.Exp2 Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.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.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a; MtxVec.CreateIt(out a); try { a.SetIt(false, new double[] {1,2,3,4}); a.Exp2(); // a = [1,4,9,16] } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!