You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TDenseMtxVec Class > public > NormC Method > TDenseMtxVec.NormC Method (TDenseMtxVec, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TDenseMtxVec.NormC Method (TDenseMtxVec, boolean)

The C-norm.

Pascal
function NormC(const Vec: TDenseMtxVec; RelativeError: boolean = False): double; overload;

C norm: ||V-Vec||, where V is the calling vector.

If the NormC is called without any parameters, the NormC calculates the norm of the calling vector. The C norm of ||V-Vec|| is defined by the formula: 

 

 

If RelativeError is true then the computed norm is divided by the norm of V, and the function returns the "relative error": 

 

 

 

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