Post Reply 
Bug: HP Prime can't do Log's
12-14-2015, 06:35 AM (This post was last modified: 12-14-2015 06:47 AM by cyrille de brébisson.)
Post: #3
RE: Bug: HP Prime can't do Log's
Hello,

Precision is, as always, touchy when one talks about floating points.
The classical example of 1/3*3 comes to mind (should return 0.999999... on all numerical calcs that do not try to doctor the results or mic numerical and symbolic. Hence, could claim that no calc can do math)...

Prime does give the correct answer to LN(81) and to LN(3) (within the calculator 12 digit accuracy). And dividing these 2 answers by each others do indeed yield 3.99...99).
What is 'funny' is that removing 2 digits of accuracy to these results and doing the division, will yield (after rounding), 4. A 'more precise result'.

So, we are in the 'interesting case' where more precision returns a less accurate result, and less precision will return a more accurate result.

This is, as noted above, a normal occurrence of floating point arithmetic.


People do tend to forget that Floating point arithmetic is rarely exact (the cases where it is are, from a statistic standpoint, rare). But is designed to be self consistent and to avoid accumulation of errors on long calculations.


Now, of course, as stated by someone earlier, if you want 'exact' math (not precise, but exact), then you can use the CAS where logb(81,3) will return 4. You can find logb in the template menu/key (next to the x,t,theta key).

> "In the area of math, there still is a right vs. wrong answer"
This can (and often is) debated, and is a very interesting question all by itself!
Everyone would agree that, in lots of math problems, there is not 'a right answer', but 0 to n right answers to a question (some questions do not have answers, and some do have more than 1)...
I am pretty sure that they are some provably wrong answers to a given questions (ie, an answer that can not be justified)
Gödel has nicely proven that they are some undecidable answers to some questions (ie, answers for which we can not know if they are right or wrong).
Of course, there is always the problem of interpretation and context of the question/answer pair.
The same answer can be right in a given context and wrong in another (6+6=2, in the context of 10 mod arithmetic).
In the case at hand, LN(81,3)=3.999..99 in the context of 12 digit decimal precision floating point arithmetic. It is equal to 4 in the context of 10 digit precision floating point!

I guess that aspect of things is why I like math. Not for the calculation but for the "philosophy" (phylosomath) behind it!

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Bug: HP Prime can't do Log's - davimle - 12-14-2015, 04:26 AM
RE: Bug: HP Prime can't do Log's - Han - 12-14-2015, 05:02 AM
RE: Bug: HP Prime can't do Log's - cyrille de brébisson - 12-14-2015 06:35 AM
RE: Bug: HP Prime can't do Log's - Dieter - 12-14-2015, 07:02 AM
RE: Bug: HP Prime can't do Log's - retoa - 12-14-2015, 07:52 AM
RE: Bug: HP Prime can't do Log's - jebem - 12-14-2015, 10:11 AM
RE: Bug: HP Prime can't do Log's - cclinus - 12-14-2015, 08:08 AM
RE: Bug: HP Prime can't do Log's - Han - 12-14-2015, 02:58 PM
RE: Bug: HP Prime can't do Log's - carey - 12-14-2015, 07:26 PM
RE: Bug: HP Prime can't do Log's - Werner - 12-15-2015, 08:11 AM
RE: Bug: HP Prime can't do Log's - Fortin - 12-15-2015, 03:14 PM
RE: Bug: HP Prime can't do Log's - DrD - 12-14-2015, 08:28 PM
RE: Bug: HP Prime can't do Log's - carey - 12-14-2015, 08:22 PM
RE: Bug: HP Prime can't do Log's - Fortin - 12-14-2015, 08:31 PM
RE: Bug: HP Prime can't do Log's - davimle - 12-14-2015, 09:36 PM
RE: Bug: HP Prime can't do Log's - davimle - 12-15-2015, 07:43 AM
RE: Bug: HP Prime can't do Log's - Werner - 12-15-2015, 01:28 PM
RE: Bug: HP Prime can't do Log's - Fortin - 12-15-2015, 01:35 PM
RE: Bug: HP Prime can't do Log's - davimle - 12-16-2015, 06:55 PM
RE: Bug: HP Prime can't do Log's - ndzied1 - 12-15-2015, 11:57 AM
RE: Bug: HP Prime can't do Log's - davimle - 12-16-2015, 06:32 PM



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