You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > InvSqrt Method > TMtxVec.InvSqrt Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.InvSqrt Method ()

The inverse of square root 1/(v)^1/2.

Syntax
C#
Visual Basic
public TMtxVec InvSqrt();

Calculate the inverse square root 1/(element)^(1/2)) of 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, 16}); a.InvSqrt(); // returns [1,0.25] } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!