Deutsch   English   Français   Italiano  
<v6i0e0$12qcg$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: James Kuyper <jameskuyper@alumni.caltech.edu>
Newsgroups: comp.lang.c
Subject: Re: More complex numbers than reals?
Date: Mon, 8 Jul 2024 19:32:39 -0400
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <v6i0e0$12qcg$1@dont-email.me>
References: <v6hohq$11nib$1@dont-email.me> <87msmrsd6f.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 09 Jul 2024 02:32:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="445aeaf25174a670ea60e8f6a28f248b";
	logging-data="1141136"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19bKSBjlwzCAW0inbuDfsUVuap2jo74fgw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:XNxUIuGFma29dRdHX13QSeaxsJk=
In-Reply-To: <87msmrsd6f.fsf@bsb.me.uk>
Content-Language: en-US
Bytes: 2050

On 7/8/24 18:59, Ben Bacarisse wrote:
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
> 
>> Are there "more" complex numbers than reals?
> 
> If you ask this in an appropriate group (sci.math?) I'll answer.  Can
> you really think this is topical in comp.lang.c?

I haven't seen more of Chris's message than what you've quoted. In the
context of C, it's a easy (even trivial) question to answer.

"Each complex type has the same representation and alignment
requirements as an array type containing exactly two elements of the
corresponding real type; the first element is equal to the real part,
and the second element to the imaginary part, of the complex number."
(6.2.5p17).

Therefore, the number of different complex numbers that can be
represented is therefore the square of the number of different numbers
that can be represented in the corresponding real type.

The corresponding question suitable for sci.math is much trickier to answer.