mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:06:18 +02:00
* patch from Antonio Puente Rodero to fix arctanh and arccosh in unit ucomplex, resolves #18844
git-svn-id: trunk@17253 -
This commit is contained in:
parent
8bff2a0de4
commit
f2a3f4e5af
@ -572,7 +572,7 @@ Unit UComplex;
|
|||||||
{ _________ }
|
{ _________ }
|
||||||
{ argch(z) = -/+ ln(z + i.V 1 - z.z) }
|
{ argch(z) = -/+ ln(z + i.V 1 - z.z) }
|
||||||
begin
|
begin
|
||||||
carg_ch:=-cln(z+i*csqrt(z*z-1.0));
|
carg_ch:=-cln(z+i*csqrt(1.0-z*z));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function carg_sh (z : complex) : complex;
|
function carg_sh (z : complex) : complex;
|
||||||
@ -587,7 +587,7 @@ Unit UComplex;
|
|||||||
{ hyperbolic arc tangent }
|
{ hyperbolic arc tangent }
|
||||||
{ argth(z) = 1/2 ln((z + 1) / (1 - z)) }
|
{ argth(z) = 1/2 ln((z + 1) / (1 - z)) }
|
||||||
begin
|
begin
|
||||||
carg_th:=cln((z+1.0)/(z-1.0))/2.0;
|
carg_th:=cln((z+1.0)/(1.0-z))/2.0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ functions to write out a complex value }
|
{ functions to write out a complex value }
|
||||||
|
Loading…
Reference in New Issue
Block a user