Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

He's dead, Jim. -- McCoy, "The Devil in the Dark", stardate 3196.1


tech / sci.math / an algorithm

SubjectAuthor
* an algorithmRichD
+- Re: an algorithmSerg io
+* Re: an algorithmJames Waldby
|`- Re: an algorithmRichD
`- Re: an algorithmmitchr...@gmail.com

1
an algorithm

<a36e1f16-c687-45fa-a981-a4b91a76cbfan@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=83394&group=sci.math#83394

  copy link   Newsgroups: sci.math
X-Received: by 2002:ac8:598c:: with SMTP id e12mr26471561qte.337.1637541596175;
Sun, 21 Nov 2021 16:39:56 -0800 (PST)
X-Received: by 2002:a05:6902:4ec:: with SMTP id w12mr5632586ybs.298.1637541595897;
Sun, 21 Nov 2021 16:39:55 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Sun, 21 Nov 2021 16:39:55 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=205.154.192.197; posting-account=x2WXVAkAAACheXC-5ndnEdz_vL9CA75q
NNTP-Posting-Host: 205.154.192.197
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a36e1f16-c687-45fa-a981-a4b91a76cbfan@googlegroups.com>
Subject: an algorithm
From: r_delane...@yahoo.com (RichD)
Injection-Date: Mon, 22 Nov 2021 00:39:56 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: RichD - Mon, 22 Nov 2021 00:39 UTC

Consider the following recursion:
a[k] = (1/2)(a[k-1] + 2/a[k-1]), k = 1, 2, 3... ; a[.] is positive real
We need a seed; it's not too important, try a[1] = 10

Does the sequence converge? (hint: it does)
What's the limit?

Using your troglodyte brain, you might calculate a few
terms and guess the limit. yuk, crude

Or you might exercise your homo sapiens brain
and derive the limit, elegantly.

--
Rich

Re: an algorithm

<snepu2$mvu$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=83398&group=sci.math#83398

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!jq9Zon5wYWPEc6MdU7JpBw.user.46.165.242.75.POSTED!not-for-mail
From: inva...@invalid.com (Serg io)
Newsgroups: sci.math
Subject: Re: an algorithm
Date: Sun, 21 Nov 2021 18:57:36 -0600
Organization: Aioe.org NNTP Server
Message-ID: <snepu2$mvu$1@gioia.aioe.org>
References: <a36e1f16-c687-45fa-a981-a4b91a76cbfan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="23550"; posting-host="jq9Zon5wYWPEc6MdU7JpBw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Serg io - Mon, 22 Nov 2021 00:57 UTC

On 11/21/2021 6:39 PM, RichD wrote:
> Consider the following recursion:
> a[k] = (1/2)(a[k-1] + 2/a[k-1]), k = 1, 2, 3... ; a[.] is positive real
> We need a seed; it's not too important, try a[1] = 10
>
> Does the sequence converge? (hint: it does)
> What's the limit?
>
> Using your troglodyte brain, you might calculate a few
> terms and guess the limit. yuk, crude
>
> Or you might exercise your homo sapiens brain
> and derive the limit, elegantly.
>
> --
> Rich
>

https://courses.lumenlearning.com/ivytech-collegealgebra/chapter/using-the-formula-for-geometric-series/

https://nypost.com/2021/11/16/kamala-harris-is-a-very-weird-person/

Re: an algorithm

<snf7fs$ipk$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=83410&group=sci.math#83410

  copy link   Newsgroups: sci.math
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: j-wal...@no.no (James Waldby)
Newsgroups: sci.math
Subject: Re: an algorithm
Date: Mon, 22 Nov 2021 04:49:00 -0000 (UTC)
Organization: self
Lines: 31
Message-ID: <snf7fs$ipk$1@dont-email.me>
References: <a36e1f16-c687-45fa-a981-a4b91a76cbfan@googlegroups.com>
Injection-Date: Mon, 22 Nov 2021 04:49:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c51e85a0fb9227c4ed4e94b68fcf58c8";
logging-data="19252"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MR58Hhzwg70Srd8HLu0Qk"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-90-generic (x86_64))
Cancel-Lock: sha1:yIAao+yfPfcfML+dWcifTbMLTfs=
 by: James Waldby - Mon, 22 Nov 2021 04:49 UTC

RichD <r_delaney2001@yahoo.com> wrote:
> Consider the following recursion:
> a[k] = (1/2)(a[k-1] + 2/a[k-1]), k = 1, 2, 3... ; a[.] is positive real

Call that equation 1.

> We need a seed; it's not too important, try a[1] = 10
>
> Does the sequence converge? (hint: it does)
> What's the limit?
>
> Using your troglodyte brain, you might calculate a few
> terms and guess the limit. yuk, crude
>
> Or you might exercise your homo sapiens brain
> and derive the limit, elegantly.

The easiest way to find the limit is to suppose it converges to some
number a, at which point a = (a + 2/a)/2, or 2a^2 = a^2 + 2, or a^2=2,
a = sqrt(2)*. For convergence, just show a[n] > a[n+1] > sqrt(a)
after a[2].

Seeing the sqrt(2) value is a reminder that equation 1 looks a lot
like Newton's method; and indeed it's a form shown in refs A, B, C.
Reference C give the details of a[n] > a[n+1] > sqrt(a), while A & B
have calculus-based quadratic convergence proofs.

*) a = sqrt(2) if a[1] is positive, else -sqrt(2).
A) <https://en.wikipedia.org/wiki/Newton's_method#Square_root>
B) <https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method>
C) <https://math.mit.edu/~stevenj/18.335/newton-sqrt.pdf>

Re: an algorithm

<81ff2c2f-b55a-4235-bc53-6030a74ff82bn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=83551&group=sci.math#83551

  copy link   Newsgroups: sci.math
X-Received: by 2002:a05:622a:293:: with SMTP id z19mr2281019qtw.46.1637715719616;
Tue, 23 Nov 2021 17:01:59 -0800 (PST)
X-Received: by 2002:a25:6b4d:: with SMTP id o13mr11130750ybm.291.1637715719403;
Tue, 23 Nov 2021 17:01:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Tue, 23 Nov 2021 17:01:59 -0800 (PST)
In-Reply-To: <snf7fs$ipk$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=205.154.192.197; posting-account=x2WXVAkAAACheXC-5ndnEdz_vL9CA75q
NNTP-Posting-Host: 205.154.192.197
References: <a36e1f16-c687-45fa-a981-a4b91a76cbfan@googlegroups.com> <snf7fs$ipk$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <81ff2c2f-b55a-4235-bc53-6030a74ff82bn@googlegroups.com>
Subject: Re: an algorithm
From: r_delane...@yahoo.com (RichD)
Injection-Date: Wed, 24 Nov 2021 01:01:59 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 36
 by: RichD - Wed, 24 Nov 2021 01:01 UTC

On November 21, James Waldby wrote:
>> Consider the following recursion:
>> a[k] = (1/2)(a[k-1] + 2/a[k-1]), k = 1, 2, 3... ; a[.] is positive real
>
> Call that equation 1.
>
>> We need a seed; it's not too important, try a[1] = 10
>> Does the sequence converge? (hint: it does)
>> What's the limit?
>
> The easiest way to find the limit is to suppose it converges to some
> number a, at which point a = (a + 2/a)/2, or 2a^2 = a^2 + 2, or a^2=2,
> a = sqrt(2)*.

Yes, that's the forward method: start with a^2 = 2, do some algebra,
then the recursion follows easily.

However, the backward method - given the recursion, decode it - is
more obscure. I posted it here, to see if anyone recognized it.

> For convergence, just show a[n] > a[n+1] > sqrt(a)
> after a[2].

It's a difference equation, which has a rich theory. But it's non-linear,
and the books only deal with linear systems. Stability proofs become
dicey (though maybe not in this case).

> Seeing the sqrt(2) value is a reminder that equation 1 looks a lot
> like Newton's method; and indeed it's a form shown in refs A, B, C.
> Reference C give the details of a[n] > a[n+1] > sqrt(a), while A & B
> have calculus-based quadratic convergence proofs.
>
> A) <https://en.wikipedia.org/wiki/Newton's_method#Square_root>

--
Rich

Re: an algorithm

<6ee8db0a-9eed-4b83-88a7-d1285304156dn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=83553&group=sci.math#83553

  copy link   Newsgroups: sci.math
X-Received: by 2002:ac8:5b89:: with SMTP id a9mr2232139qta.363.1637717236261;
Tue, 23 Nov 2021 17:27:16 -0800 (PST)
X-Received: by 2002:a25:cf0e:: with SMTP id f14mr11797709ybg.236.1637717236120;
Tue, 23 Nov 2021 17:27:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Tue, 23 Nov 2021 17:27:15 -0800 (PST)
In-Reply-To: <a36e1f16-c687-45fa-a981-a4b91a76cbfan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:1c0:c803:ab80:a537:a0f9:3107:90f9;
posting-account=Dg6LkgkAAABl5NRBT4_iFEO1VO77GchW
NNTP-Posting-Host: 2601:1c0:c803:ab80:a537:a0f9:3107:90f9
References: <a36e1f16-c687-45fa-a981-a4b91a76cbfan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6ee8db0a-9eed-4b83-88a7-d1285304156dn@googlegroups.com>
Subject: Re: an algorithm
From: mitchrae...@gmail.com (mitchr...@gmail.com)
Injection-Date: Wed, 24 Nov 2021 01:27:16 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: mitchr...@gmail.com - Wed, 24 Nov 2021 01:27 UTC

On Sunday, November 21, 2021 at 4:40:01 PM UTC-8, RichD wrote:
> Consider the following recursion:
> a[k] = (1/2)(a[k-1] + 2/a[k-1]), k = 1, 2, 3... ; a[.] is positive real
> We need a seed; it's not too important, try a[1] = 10
>
> Does the sequence converge? (hint: it does)
> What's the limit?
>
> Using your troglodyte brain, you might calculate a few
> terms and guess the limit. yuk, crude
>
> Or you might exercise your homo sapiens brain
> and derive the limit, elegantly.
>
> --
> Rich

You got a monkey brain rich...

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor