all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: The next exercise
Date: Fri, 09 Dec 2022 21:38:25 +0100	[thread overview]
Message-ID: <87y1rgs472.fsf@web.de> (raw)
In-Reply-To: Y5OPlbhdGTcE8Fkm@tuxteam.de

<tomas@tuxteam.de> writes:

> My choice was school maths. But I cheated, because I
> studied physics later, so those maths were kept warm
> for some longer while ;-)

Ok, I owe the mathematical background, at least a bit.  The general
background is that

  /n + 1\ n
  |- - -|   --> e
  \  n  /

and if you set n := 1000 you get that 1001^1000 is approximately
e*1000^1000 (*).

Regards,

Michael.



(*) But is this enough to be sure that the first three digits are those
of e?  To be really sure you either check with some sort of calculator
which can calculate such large numbers - there are several ways in Emacs
as we saw!

Or you remember how e can be introduced: with

         /    1\ n               /   1\ n+1
  a_n := |1 + -|   and   b_n := |1 + -|  
         \    n/                 \   n/  

you got that a_n is strictly monotonously increasing, b_n strictly
monotonously decreasing, and b_n - a_n --> 0, so they both converge and
the limit is called e.  From a_n < e < b_n you then also see that

  e    b_n   n+1       b_n   b_n   n+1
 --- < --- = ---  and  --- < --- = ---
 a_n   a_n    n         e    a_n    n

and from that you can even conclude how good the approximation is.  For
n=1000 the exact value must fulfill

   1
 ----- *e*1000^1000 < 1001^1000 < 1.001*e*1000^1000
 1.001

which is good enough for three digits 271 from e.

This is a quite surprising thing, I mean, here are no functions and
derivatives, no fractions, no combinatorics etc involved.  Still,
(1+10^n)^(10^n), a simple product of natural numbers, always starts with
the first n digits of e for every n.  More and more the larger n gets.

Ok - I really apologize for the little mathematical excursion.  Have a
look at M-x calc (it's built in) if you haven't yet.  It's worth it!





  reply	other threads:[~2022-12-09 20:38 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09 19:09 The next exercise Michael Heerdegen
2022-12-09 19:42 ` tomas
2022-12-09 20:38   ` Michael Heerdegen [this message]
2022-12-10  2:09     ` Emanuel Berg
2022-12-10  6:18     ` tomas
2022-12-10  7:28       ` Emanuel Berg
2022-12-10  2:05   ` Emanuel Berg
2022-12-09 19:44 ` Gregory Heytings
2022-12-09 19:58   ` Michael Heerdegen
2022-12-09 20:19     ` tomas
2022-12-09 20:33     ` Gregory Heytings
2022-12-09 20:51       ` Michael Heerdegen
2022-12-09 21:27         ` Emanuel Berg
2022-12-12  1:34           ` Michael Heerdegen
2022-12-15  5:29             ` Emanuel Berg
2022-12-15 22:24               ` Michael Heerdegen
2022-12-15 23:17               ` Michael Heerdegen
2022-12-16  1:16                 ` Michael Heerdegen
2022-12-17  0:20                 ` Emanuel Berg
2022-12-18  0:11                   ` Michael Heerdegen
2022-12-20  4:45                     ` Emanuel Berg
2022-12-11 19:48         ` Andy Moreton
2022-12-12  1:39           ` Michael Heerdegen
2022-12-15 10:47             ` Emanuel Berg
2022-12-10  2:25       ` Emanuel Berg
2022-12-09 20:43 ` Emanuel Berg
2022-12-09 21:29   ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1rgs472.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.