Matrix.Erfc Method

Overload List

#SignatureDescription
1function Erfc: TMtxVec;Complementary error function of self (in-place).
└ indexed: function Erfc(Index: Integer; Len: Integer): TMtxVec;
2function Erfc(const Src: TMtxVec): TMtxVec;Complementary error function of Src; result stored in self.
└ indexed: function Erfc(const Src: TMtxVec; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function Erfc: TMtxVec;

Complementary error function of self (in-place).

Result: stored in self (calling object), returns self for chaining

Examples
var
    a, expected: Matrix;
begin
    a := [[0.0, 0.5], [1.0, 2.0]];
    a.Erfc;
    expected := [[1.0, 0.479500122186953], [0.157299207050285, 0.00467773498104727]];
    if not a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute) then
        raise Exception.Create('Matrix.Erfc: mismatch');
end;

Indexed: function Erfc(Index: Integer; Len: Integer): TMtxVec;

Complementary error function on self elements [Index..Index+Len-1] in-place.

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Overload 2: function Erfc(const Src: TMtxVec): TMtxVec;

Complementary error function of Src; result stored in self.

#NameTypeDescription
1SrcTMtxVec

Result: stored in self (calling object), returns self for chaining

Examples
var
    a, x, expected: Matrix;
begin
    x := [[0.0, 0.5], [1.0, 2.0]];
    a.Erfc(x);
    expected := [[1.0, 0.479500122186953], [0.157299207050285, 0.00467773498104727]];
    if not a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute) then
        raise Exception.Create('Matrix.Erfc: mismatch');
end;

Indexed: function Erfc(const Src: TMtxVec; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Complementary error function of Src elements [SrcIndex..SrcIndex+Len-1] stored in self elements [Index..Index+Len-1].

#NameTypeDescription
1SrcTMtxVec
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining