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


Groups > sci.math > #490872

Re: Fun with pi

From James Waldby <not@valid.invalid>
Newsgroups sci.math
Subject Re: Fun with pi
Date 2020-07-16 23:29 +0000
Organization A noiseless patient Spider
Message-ID <reqnsq$7da$2@dont-email.me> (permalink)
References (4 earlier) <c8b5694d-2223-4998-8e1f-405c8a646d4bo@googlegroups.com> <hmorgft427228skm3843fd68tn4ja856a5@4ax.com> <981fed60-35b0-403d-8f22-0d94ae4ffa92o@googlegroups.com> <oddsgfhmgv22js4lumcc0vtpj408ccu53o@4ax.com> <6f61873b-6f1b-42e6-925a-0ddd35984266o@googlegroups.com>

Show all headers | View raw


On Wed, 15 Jul 2020 20:48:07 -0700, djoyce099 wrote:
[...]> 
> Like the golden ratio when using these connecting fraction creating only the
> upper bounds of that ratio will --->oo.
> Not with pi, no matter what integer you start with.
> 2,4,7,12,20,33,54,88,143...
> 
> Notice that each number in the sequence above starting with fib(4)-1
> is the Fibonacci sequence. 3,5,8,13,21...
> 
> 4/2,7/4,12/7,20/12,33/20,54/33,88/54,143/88 --->oo
> It also works for all the metal means and their ratios --->oo 
> I am not sure if there are other constants that this is possible.

I don't know what you mean in the above.  Is the following relevant 
to what you are looking at?  Given a recurrence like f"" = a*f"' + 
b*f" + c*f' + d*f, where all the identifiers stand for integers and 
where f = f_i, f' = f_(i+1), f" = f_(i+2) and so forth, one finds there
is a relation like f' ~ r*f with r being a root of a polynomial.  In 
this example the polynomial is 4th degree, x^4 - a*x^3 - b*x^2 -c*x-d.

If you start a python interpreter (for example, in a terminal or 
console window type `python3` without quotes and press enter) and enter
the commands `from numpy import roots` and `roots([1,-a,-b,-c,-d])[0]`
you will see an approximation to a root of that polynomial.  (If you
don't have numpy installed you might have to say `pip3 numpy` before
starting python3, or `pip numpy` before starting python.)  Here's an
example ...

   from numpy import roots
   a, b, c, d = 2, -1, 16, -5
   roots([1,-a,-b,-c, -d])[0]   # output: (3.1415806801823445+0j)
   g = [0,0,0,1]
   for k in range(len(g),57):
       g.append(a*g[-1] + b*g[-2] + c*g[-3] + d*g[-4] )
   print (g[-1]/g[-2])    # output:  3.1415807769455464
   g = [9,8,7,6]
   for k in range(len(g),57):
       g.append( a*g[-1] + b*g[-2] + c*g[-3] + d*g[-4] )
   print (g[-1]/g[-2])    # output: 3.141580660530825 

-- 
jiw

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


Thread

Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-13 21:45 -0700
  Re: Fun with pi Barry Schwarz <schwarzb@delq.com> - 2020-07-13 23:40 -0700
    Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-14 05:55 -0700
      Re: Fun with pi Barry Schwarz <schwarzb@delq.com> - 2020-07-14 07:34 -0700
        Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-14 09:14 -0700
          Re: Fun with pi Barry Schwarz <schwarzb@delq.com> - 2020-07-14 09:57 -0700
            Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-14 11:13 -0700
              Re: Fun with pi Barry Schwarz <schwarzb@delq.com> - 2020-07-14 16:14 -0700
                Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-15 20:48 -0700
                Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-15 21:54 -0700
                Re: Fun with pi Barry Schwarz <schwarzb@delq.com> - 2020-07-16 07:10 -0700
                Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-16 22:38 -0700
                Re: Fun with pi James Waldby <not@valid.invalid> - 2020-07-16 23:29 +0000
                Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-16 23:06 -0700
      Re: Fun with pi Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2020-07-14 15:39 +0100
        Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-14 08:57 -0700
        Re: Fun with pi konyberg <konyberg@online.no> - 2020-07-14 09:31 -0700
          Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-14 09:58 -0700
            Re: Fun with pi James Waldby <not@valid.invalid> - 2020-07-14 18:38 +0000
  Re: Fun with pi bert <bert.hutchings@btinternet.com> - 2020-07-14 02:05 -0700
    Re: Fun with pi djoyce099 <hlauk.h.bogart@gmail.com> - 2020-07-14 06:08 -0700
  Re: Fun with pi William <wpihughes@gmail.com> - 2020-07-14 09:28 -0700
  Re: Fun with pi konyberg <konyberg@online.no> - 2020-07-14 09:52 -0700
  Fun with pi bassam karzeddin <sophyan2003@gmail.com> - 2020-07-14 09:58 -0700
  Re: Fun with pi Mitch Raemsch <mitchrae3323@gmail.com> - 2020-07-14 18:11 -0700
  Re: Fun with pi Peter <peterxpercival@hotmail.com> - 2020-07-15 13:41 +0100
    Re: Fun with pi Peter <peterxpercival@hotmail.com> - 2020-07-15 13:44 +0100
      Re: Fun with pi bassam karzeddin <sophyan2003@gmail.com> - 2020-07-15 06:54 -0700
      Re: Fun with pi Sergio <invalid@invalid.com> - 2020-07-15 13:13 -0500
        Re: Fun with pi Mitch Raemsch <mitchrae3323@gmail.com> - 2020-07-15 12:55 -0700
          Re: Fun with pi Sergio <invalid@invalid.com> - 2020-07-15 19:48 -0500
            Re: Fun with pi Mitch Raemsch <mitchrae3323@gmail.com> - 2020-07-16 16:39 -0700
          Re: Fun with pi Peter <peterxpercival@hotmail.com> - 2020-07-17 11:54 +0100

csiph-web