Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #489762

Re: What do these sequential fractions represent?

From Sergio <invalid@invalid.com>
Newsgroups sci.math
Subject Re: What do these sequential fractions represent?
Date 2020-07-04 16:41 -0500
Organization Aioe.org NNTP Server
Message-ID <rdqt28$16pf$1@gioia.aioe.org> (permalink)
References (15 earlier) <rdmf3i$es6$2@dont-email.me> <86575aaf-632b-4b1f-ae4f-50793d2e9bc7o@googlegroups.com> <rdqp93$es6$4@dont-email.me> <fd1b711f-a900-4bec-8fdf-b4a553f684bco@googlegroups.com> <f0a8db01-5217-448e-ad18-08f78d185f88o@googlegroups.com>

Show all headers | View raw


On 7/4/2020 4:15 PM, konyberg wrote:
> lørdag 4. juli 2020 22.50.13 UTC+2 skrev konyberg følgende:
>> lørdag 4. juli 2020 22.36.57 UTC+2 skrev James Waldby følgende:
>>> On Fri, 03 Jul 2020 12:29:03 -0700, konyberg wrote:
>>>> fredag 3. juli 2020 07.18.48 UTC+2 skrev James Waldby følgende:
>>>>> On Thu, 02 Jul 2020 14:00:48 -0700, djoyce099 wrote:
>>>>>> On Thursday, July 2, 2020 at 1:43:25 AM UTC-4, James Waldby wrote:
>>>>>>> On Wed, 01 Jul 2020 11:29:49 -0700, djoyce099 wrote:
>>>>>>> ...
>>>>>>>> Here are the first 9 fractions depicting each step of the above formula.
>>>>>>>> 9/3, 11/4, 49/18, 87/32, 1631/600, 11743/4320, 31967/11760,
>>>>>>>> 876809/322560, 8877691/3265920
>>>>>>>>
>>>>>>>> Factorial (9!) is used in determining the last fraction above. 
>>>>>>>> The next term will use factorial (10!)  
>>>>>>>> Also note all, even, odd ---numerator, denominator.
>>>>>>>> Who can add to this list?
>>>>>>>
>>>>>>> On 27 June I posted python to print out terms of the series; see below.
>>>>>>>
>>>>>>> from fractions import Fraction
>>>>>>> def series(k): 
>>>>>>>     s = Fraction(9,3);  fac = 1 
>>>>>>>     for i in range(2,k): 
>>>>>>>         print (f'{i-1:5}   {float(s):<20.16}   {s}') 
>>>>>>>         fac = fac*i 
>>>>>>>         s = s - Fraction(1,fac*i*(i-1))
>>>>>>> series(28)
>>>>>
>>>>>> Having problem with -- print (f'{i-1:5}   {float(s):<20.16}   {s}') <-- here
>>>>>> it highlights the last hyphen in that line }')
>>>>>> Probably because I have an older version of Python - Python 2.6.6rel
>>>>>
>>>>> As Chris Thomasson noted, the program works ok with Python 3.  I have
>>>>> Python 3.6.9 installed.  3.7 might be available now.  Python 2 doesn't
>>>>> have f-strings formatting and because it was end-of-life'd last
>>>>> January never will.  <https://stackoverflow.com/a/46182112/837847>
>>>>> mentions a workaround, or you can just replace the above print with:
>>>>>
>>>>>          print ('{:5}   {:<20.16}   {}'.format(i-1, float(s), s))
>>>
>>>> Why not just use: 3 - Sum(n=2 to inf)[(n-2)!/(n)!^2]. This will give e.
>>>
>>> You mean, code an infinite loop into the program?  That approach has
>>> a couple of flaws.  First, most people don't have the patience to sit
>>> and wait for an infinite calculation to end.  Second, as n grows large,
>>> the memory needed to represent the values of (n-2)! and (n!)^2 will 
>>> eventually outstrip the total amount of memory in the universe.
>>>
>>> -- 
>>> jiw
>>
>> Of course it will outstrip the memory. So let go of inf and use another number. The formula gives approximation to e quit quick.
>> KON
> 
> But then I wonder; why would anybody use an algoritme to use e in a program? Isn't e built in a library?
> KON
> 

the *algorithm* is in the library, with the rest of them, like Pi, Sin,
Cos, Tan etc, and they use the fast accurate ones.

AND in reality, no one needs to use more than 64 significant digits of
any number.

 (this will prevent using all the memory in the universe multiple times)

Back to sci.math | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 05:38 -0700
  What do these sequential fractions represent? bassam karzeddin <sophyan2003@gmail.com> - 2020-06-27 06:06 -0700
    Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 06:21 -0700
  Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-06-27 09:27 -0500
    Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-06-27 17:09 +0100
      Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-06-27 11:36 -0500
  Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-06-27 08:58 -0700
    Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-06-27 11:49 -0500
    Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 10:34 -0700
      Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 10:38 -0700
        Re: What do these sequential fractions represent? James Waldby <not@valid.invalid> - 2020-06-27 20:52 +0000
          Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 14:25 -0700
        Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-06-28 21:53 -0500
      Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 11:57 -0700
        Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 12:03 -0700
          Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-06-27 20:09 +0100
            Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 12:26 -0700
              Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-06-27 21:07 +0100
                Re: What do these sequential fractions represent? Mitch Raemsch <mitchrae3323@gmail.com> - 2020-06-27 13:11 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 13:22 -0700
                Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-06-27 21:24 +0100
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 13:30 -0700
                Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-06-27 22:12 +0100
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-27 14:39 -0700
                Re: What do these sequential fractions represent? James Waldby <not@valid.invalid> - 2020-06-28 06:10 +0000
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-06-28 02:17 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-28 05:14 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-28 05:21 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-06-28 16:36 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-29 09:48 -0700
                Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-06-29 17:57 +0100
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-06-28 21:56 -0500
                Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-06-28 13:22 +0100
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-06-28 16:34 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-30 16:09 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-06-30 21:30 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-01 05:42 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-01 09:39 -0500
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-01 10:20 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-01 11:29 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-01 13:57 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-07-01 14:29 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-01 15:27 -0700
                Re: What do these sequential fractions represent? konyberg <konyberg@online.no> - 2020-07-01 15:38 -0700
                Re: What do these sequential fractions represent? djoyce099 <Hlauk.H.Bogart@gmail.com> - 2020-07-01 15:58 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-07-02 00:25 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-02 10:29 -0500
                Re: What do these sequential fractions represent? djoyce099 <Hlauk.H.Bogart@gmail.com> - 2020-07-01 15:46 -0700
                Re: What do these sequential fractions represent? djoyce099 <Hlauk.H.Bogart@gmail.com> - 2020-07-01 16:17 -0700
                Re: What do these sequential fractions represent? djoyce099 <Hlauk.H.Bogart@gmail.com> - 2020-07-01 16:23 -0700
                Re: What do these sequential fractions represent? djoyce099 <Hlauk.H.Bogart@gmail.com> - 2020-07-01 16:26 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-07-02 00:21 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-02 14:09 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-02 10:26 -0500
                Re: What do these sequential fractions represent? James Waldby <not@valid.invalid> - 2020-07-02 05:43 +0000
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-02 14:00 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-02 14:06 -0700
                Re: What do these sequential fractions represent? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-07-02 14:06 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-02 17:08 -0500
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-02 19:46 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-02 22:06 -0500
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-02 19:41 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-02 20:15 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-02 22:24 -0500
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-02 21:55 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-07-03 07:51 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-03 08:30 -0700
                Re: What do these sequential fractions represent? Peter <peterxpercival@hotmail.com> - 2020-07-03 16:30 +0100
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-03 08:43 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-07-03 11:42 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-03 14:03 -0700
                Re: What do these sequential fractions represent? Barry Schwarz <schwarzb@delq.com> - 2020-07-03 15:46 -0700
                Re: What do these sequential fractions represent? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-07-03 15:53 -0700
                Re: What do these sequential fractions represent? FromTheRafters <erratic@nomail.afraid.org> - 2020-07-03 19:09 -0400
                Re: What do these sequential fractions represent? FromTheRafters <erratic@nomail.afraid.org> - 2020-07-03 15:22 -0400
                Re: What do these sequential fractions represent? James Waldby <not@valid.invalid> - 2020-07-03 05:18 +0000
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-03 06:14 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-03 08:29 -0700
                Re: What do these sequential fractions represent? James Waldby <not@valid.invalid> - 2020-07-04 04:12 +0000
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-03 21:43 -0700
                Re: What do these sequential fractions represent? konyberg <konyberg@online.no> - 2020-07-03 12:29 -0700
                Re: What do these sequential fractions represent? James Waldby <not@valid.invalid> - 2020-07-04 20:36 +0000
                Re: What do these sequential fractions represent? konyberg <konyberg@online.no> - 2020-07-04 13:50 -0700
                Re: What do these sequential fractions represent? konyberg <konyberg@online.no> - 2020-07-04 14:15 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-04 16:41 -0500
                Re: What do these sequential fractions represent? konyberg <konyberg@online.no> - 2020-07-04 14:47 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-04 18:05 -0500
                Re: What do these sequential fractions represent? FromTheRafters <erratic@nomail.afraid.org> - 2020-07-05 08:19 -0400
                Re: What do these sequential fractions represent? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-07-04 14:52 -0700
                Re: What do these sequential fractions represent? Sergio <invalid@invalid.com> - 2020-07-04 18:03 -0500
                Re: What do these sequential fractions represent? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-28 20:55 -0700
                Re: What do these sequential fractions represent? djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-03 19:04 -0700

csiph-web