From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 4AA3126F01 for ; Fri, 8 Mar 2024 05:44:48 +0100 (CET) Received: (qmail 12247 invoked by uid 550); 8 Mar 2024 04:40:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 12212 invoked from network); 8 Mar 2024 04:40:46 -0000 Date: Fri, 8 Mar 2024 15:44:32 +1100 (AEDT) From: Damian McGuckin To: MUSL In-Reply-To: <7e3d7940-60c8-2df9-2441-7acee57d7ba@esi.com.au> Message-ID: References: <7e3d7940-60c8-2df9-2441-7acee57d7ba@esi.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: [musl] Re: cacosh.c - Comment needs correction On Fri, 8 Mar 2024, Damian McGuckin wrote: > > 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) */ Sorry (fat fingers or worse): /* cacosh(z) = acosh(x +/- i y) = +/- i acos(x +/- i y) */ Thanks - Damian Pacific Engineering Systems International ..... 20D Grose St, Glebe NSW 2037 Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here Views & opinions here are mine and not those of any past or present employer