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

Root mean square (RMS).

Syntax
C#
Visual Basic
public double RMS();

Calculate the root mean square value for all calling object elements in-place. The root mean square (RMS) is defined by the equation: 

 

 

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