Post Reply 
Larger stack size
12-29-2020, 05:56 PM (This post was last modified: 12-29-2020 06:01 PM by Allen.)
Post: #20
RE: Larger stack size
(12-29-2020 04:59 PM)Valentin Albillo Wrote:  Wrong. Yout code above does not compute correctly that tower of exponentials.
V.

Symbolically it does.

In python it's off by the trailing digit, but the same could be true of either implementation on different calculators with different accuracy.

Code:

pow(pow(pow(pow(2,1.8),1.6),1.4),1.2)
Out[124]: 28.609056210554545

pow(2,1.8*1.6*1.4*1.2)
Out[125]: 28.60905621055455

I would suggest that on a pocket calculator
\( 2^{1.8*1.6*1.4*1.2} \)
is the better approach since there is only 1 opportunity to cascade floating point errors, rather than the nested exponential which propagates any round-off error from the first EXP several times before arriving at the final result.

17bii | 32s | 32sii | 41c | 41cv | 41cx | 42s | 48g | 48g+ | 48gx | 50g | 30b

Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Larger stack size - Dave Britten - 12-28-2020, 06:10 PM
RE: Larger stack size - hth - 12-28-2020, 06:38 PM
RE: Larger stack size - Dave Britten - 12-28-2020, 07:58 PM
RE: Larger stack size - Massimo Gnerucci - 12-28-2020, 07:37 PM
RE: Larger stack size - BruceH - 12-28-2020, 11:22 PM
RE: Larger stack size - Sylvain Cote - 12-28-2020, 11:43 PM
RE: Larger stack size - Peet - 12-29-2020, 12:36 AM
RE: Larger stack size - Gene - 12-29-2020, 01:14 AM
RE: Larger stack size - Dave Britten - 12-29-2020, 03:37 AM
RE: Larger stack size - toml_12953 - 12-29-2020, 04:41 PM
RE: Larger stack size - Valentin Albillo - 12-29-2020, 02:52 AM
RE: Larger stack size - Peet - 12-29-2020, 08:46 AM
RE: Larger stack size - Paul Dale - 12-29-2020, 08:54 AM
RE: Larger stack size - RMollov - 12-29-2020, 12:18 PM
RE: Larger stack size - Gene - 12-29-2020, 01:50 PM
RE: Larger stack size - Dave Britten - 12-29-2020, 04:20 PM
RE: Larger stack size - Allen - 12-29-2020, 04:47 PM
RE: Larger stack size - Valentin Albillo - 12-29-2020, 04:59 PM
RE: Larger stack size - Allen - 12-29-2020 05:56 PM
RE: Larger stack size - Albert Chan - 12-29-2020, 06:20 PM
RE: Larger stack size - Dave Britten - 12-29-2020, 06:26 PM
RE: Larger stack size - Massimo Gnerucci - 12-29-2020, 06:29 PM
RE: Larger stack size - Dave Britten - 12-29-2020, 06:31 PM
RE: Larger stack size - ijabbott - 12-30-2020, 01:49 PM
RE: Larger stack size - Dave Britten - 12-30-2020, 02:11 PM
RE: Larger stack size - robve - 12-30-2020, 02:19 PM
RE: Larger stack size - Valentin Albillo - 12-29-2020, 09:07 PM
RE: Larger stack size - robve - 12-29-2020, 10:10 PM
RE: Larger stack size - Gene - 12-29-2020, 05:23 PM
RE: Larger stack size - Mike (Austria) - 12-29-2020, 06:18 PM
RE: Larger stack size - Massimo Gnerucci - 12-29-2020, 06:23 PM
RE: Larger stack size - JSBach - 01-04-2021, 12:21 PM
RE: Larger stack size - John Keith - 01-04-2021, 03:58 PM



User(s) browsing this thread: 1 Guest(s)