summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2024-03-10 21:00:40 +0100
committerRich Felker <dalias@aerifal.cx>2024-03-14 10:06:15 -0400
commite3b0ace505155b6b8e301d69924b0773fd82cb6e (patch)
tree39263b307ccdf990aa7d49d3dbdcfe4cb9d7f934 /src
parent9683bd62414604d3bd56cf6bd7be8f54aa31e7d3 (diff)
downloadmusl-master.tar.gz
complex: fix comment in cacoshHEADmaster
The principal expressions defining acosh and acos are such that acosh(z) = ±i acos(z) where the + is only true on the Im(z)>0 half of the complex plane (and partly on Im(z)==0 depending on number representation). fix the comment without expanding on the details.
Diffstat (limited to 'src')
-rw-r--r--src/complex/cacosh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/complex/cacosh.c b/src/complex/cacosh.c
index 76127f75..55b857ce 100644
--- a/src/complex/cacosh.c
+++ b/src/complex/cacosh.c
@@ -1,6 +1,6 @@
#include "complex_impl.h"
-/* acosh(z) = i acos(z) */
+/* acosh(z) = ±i acos(z) */
double complex cacosh(double complex z)
{