From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24438 invoked from network); 18 Jan 2022 15:04:52 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 18 Jan 2022 15:04:52 -0000 Received: (qmail 5175 invoked by uid 550); 18 Jan 2022 15:04:49 -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 5140 invoked from network); 18 Jan 2022 15:04:49 -0000 Date: Tue, 18 Jan 2022 10:04:35 -0500 From: Rich Felker To: Damian McGuckin Cc: musl@lists.openwall.com Message-ID: <20220118150435.GE7074@brightrain.aerifal.cx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] cproj.c in 1.2.2 On Tue, Jan 18, 2022 at 08:46:25PM +1100, Damian McGuckin wrote: > > In the event that 'z' is mapped to the unit sphere, the code says > > CMPLX(INFINITY, copysign(0.0, creal(z))) > > Isn't the definition > > CMPLX(INFINITY, copysign(0.0, cimag(z))) > > Or am I wrong? > > Ditto for cprojf.c and cprojl.c. I don't think you're wrong and I'm pretty sure this was just a mistake in the original writing of the complex code. I'll fix it. Rich