Deutsch English Français Italiano |
<87y18vl9ya.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.theory Subject: Re: Real Number --- Merely numbers whose digits can be infinitely long Date: Mon, 29 Apr 2024 22:02:21 -0700 Organization: None to speak of Lines: 28 Message-ID: <87y18vl9ya.fsf@nosuchdomain.example.com> References: <c10c644441b2307e828f8392fb6993a78c580ee4.camel@gmail.com> <87edaobfm4.fsf@bsb.me.uk> <0ad60eee1517af22b54bcdac3f4947895c9fa559.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 30 Apr 2024 07:02:29 +0200 (CEST) Injection-Info: dont-email.me; posting-host="1c01080f25de3277e09ea05b0cb3c034"; logging-data="2400822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18aGIu5FEL9z9yAEtZYBDkV" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:sJWV2J+Nivzd8aX7b+RlpLR9SPo= sha1:TNM5JKtUHcAhgUwoHDY/HucdjF0= Bytes: 2211 wij <wyniijj5@gmail.com> writes: [...] > Got your idea. I'll try use '|' exclusively. Thanks for the suggestions: > > <fixed_point_number>::= [-] <wnum> [ . <frac> ] // excluding "-0" case > <wnum>::= 0 > <wnum>::= <nzd> { 0 | <nzd> } > <frac>::= { 0 | <nzd> } <nzd> > <nzd> ::= 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 // 'digit' varys depending on n-ary > > Ex: 78, -12.345, 3.1414159 Am I correct in assuming that this is intended to match only finite strings? (The fact that <nzd>, non-zero digit, appears at the end of <frac> seems to imply that there must be an end.) If so, your <fixed_point_number> can only represent integer multiples of powers of 10 (or of the base if you allow bases other than decimal). Is 1/3 not a fixed-point number? Your subject line refers to *real* numbers; is π not a real number in your view? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Medtronic void Void(void) { Void(); } /* The recursive call of the void */