You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > Sqrt Method > TMtxVec.Sqrt Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.Sqrt Method ()

Square root.

Pascal
function Sqrt: TMtxVec; overload;

Calculate the square root of all caling object elements in-place.

var a: TVec; begin CreateIt(a); try a.SetIt(False,[1,4,9,16]); a.Sqrt; // a= [1, 2, 3, 4] finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!