Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: CMPLX vs a+bi values
Date: Wed, 20 Jan 2021 07:20:30 -0800
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <86h7nbocsh.fsf@linuxsc.com>
References:
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="b1fd427021f152ca5ff6680f6ccee516"; logging-data="8211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oVAaxWfiyLNqmRno4XeF0CwrEzFy84kw="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:n8AGKjM/9IaKLL60BC4tZFdJOtY= sha1:bWY412FDqkaZ7zeduyHcL11auW4=
Xref: csiph.com comp.lang.c:158482
beej@beej.us (Beej) writes:
> Time for another esoteric question!
>
> ----------
>
> #include
>
> double complex a = CMPLX(1, 2);
> double complex b = 1 + 2*I;
>
> ----------
>
> They compare equal, of course.
>
> Are there any differences between the two values, i.e. whether or
> not CMPLX() is used? [...]
I have some comments on this question. First though I am
curious to know if you read my response to your question
about floodfill.