Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Erfc: TMtxVec; | Complementary error functon of values. |
| └ indexed: function Erfc(Index: Integer; Len: Integer): TMtxVec; | ||
| 2 | function Erfc(const Src: TMtxVec): TMtxVec; | Calculates the complementary error function value for all Src object values. |
| └ indexed: function Erfc(const Src: TMtxVec; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec; |
Overload 1: function Erfc: TMtxVec;
Complementary error functon of values.
Result: stored in self (calling object), returns self for chaining
Calculates the complementary error function value for all object values in-place.
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;
Calculates the complementary error function value for calling object elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.
Overload 2: function Erfc(const Src: TMtxVec): TMtxVec;
Calculates the complementary error function value for all Src object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | source TVec or TMtx |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object. Size and TMtxVec.Complex properties of calling object are adjusted automatically.
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;
Calculates the complementary error function value for Src object elements [SrcIndex]..[SrcIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | source TVec or TMtx |
| 2 | SrcIndex | Integer | source start index |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.