Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 8 Mar 2024 15:20:09 +1100 (AEDT)
From: Damian McGuckin <damianm@....com.au>
To: MUSL <musl@...ts.openwall.com>
Subject: cacosh.c - Comment needs correction


The routine produces the correct answer.

However, currently, the comment at the top says

 	/* acosh(z) = i acos(z) */

I believe this is technically wrong;

To reflect the code, it should be changed to something like:

 	/* cacosh(z) = acosh(x +/- i y) = +/- i acos(x + i y) */

Somebody may want to rephrase that, i.e. if the sign of 'y' is positive
then the result is

 	i * cacos(z)

If the sign is negative, then the result is

 	-i * cacos(z)

I could always be wrong - Damian

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.