* [musl] cproj.c in 1.2.2
@ 2022-01-18 9:46 Damian McGuckin
2022-01-18 15:04 ` Rich Felker
0 siblings, 1 reply; 2+ messages in thread
From: Damian McGuckin @ 2022-01-18 9:46 UTC (permalink / raw)
To: musl
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.
Stay safe - Damian
Pacific Engineering Systems International, 277-279 Broadway, 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [musl] cproj.c in 1.2.2
2022-01-18 9:46 [musl] cproj.c in 1.2.2 Damian McGuckin
@ 2022-01-18 15:04 ` Rich Felker
0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2022-01-18 15:04 UTC (permalink / raw)
To: Damian McGuckin; +Cc: musl
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-18 15:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 9:46 [musl] cproj.c in 1.2.2 Damian McGuckin
2022-01-18 15:04 ` Rich Felker
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).