HP calcs are really not that accurate..

12012017, 07:49 PM
Post: #1




HP calcs are really not that accurate..
I just sat here, reading the reverb memory thread and my thoughts started to spin about the sqrt(2).
To put it straight; HP sucks at math! At least in RPN or in "inexact" mode I put 2 on the stack and sqrt it 5 times, then squared it back. All my 5 HP's returned 1.99999999979 instead of 2.0. That goes for the Android Pro version as well. On my Android phone and tab, I have the free42 (of course), realcalc+, RPNcalc, Prime and the default calc. *All*, except the HP returns 2 after the 5step sqrt/squared. HW 49G+, 50G (in exact mode) and Prime in CAS returned correct results, though. Maxima math on my PC returned correct result. I'm not angry with HP, just very, very disappointed.. Esben 28s, 35s, 49G+, 50G, Prime, SwissMicros DM42 Elektronika MK52 & MK61 

12012017, 08:01 PM
Post: #2




RE: HP calcs are really not that accurate..
I guess Dieter and others already explained that returning 2 is like lying , but I'm sure they will explain it once again.
Wikis are great, Contribute :) 

12012017, 08:18 PM
Post: #3




RE: HP calcs are really not that accurate..
Hi,
I recently explained this on another forum when someone complained about sin(pi) not equalling 0 on HP calculators in numerical mode. Here's my reply (the same argument goes for sqrt(2) ). Getting a nonzero result for sin(pi) on any numerical device is an acceptable solution, as PI cannot be accurately represented in any numerical form. Any numerical device that returns 0 is using some means to round the result to what the user expects. I have tried one of those calculators that give sin(pi) as 0: I press PI, display shows 3.14159265359 then press SIN and answer is 0 Now I manually type 3.14159265359 then press SIN and answer is 2.067...E13 Why is this calculator giving 2 different answers for what seems to be the same entry? Can I trust a calculator that gives different results for the same apparent entry? Now when the symbol PI is used, we actually want the exact solution. As PI can never be exactly represented numerically, we have to use a symbolic solver  that is where CAS comes in. It comes down to using the right tool for the job. You want a calculator that gives "exact" answers when it's using a numerical solver. This involves tricks to get the expected answer (e.g. hidden extra digits), but how do we know these tricks won't trip us up in other ways? You might be happy with the "tricks" approach, but I'd rather be in charge myself of what accuracy I want and that determines what tool I use. 

12012017, 08:23 PM
Post: #4




RE: HP calcs are really not that accurate..
(12012017 07:49 PM)DA74254 Wrote: I just sat here, reading the reverb memory thread and my thoughts started to spin about the sqrt(2). Start here (pp. 1617) Quote: unavoidable error caused by using finite computers to approximate nonfinite processes Greetings, Massimo +×÷ ↔ left is right and right is wrong 

12012017, 08:44 PM
Post: #5




RE: HP calcs are really not that accurate..
(12012017 07:49 PM)DA74254 Wrote: I put 2 on the stack and sqrt it 5 times, then squared it back. All my 5 HP's returned 1.99999999979 instead of 2.0. That goes for the Android Pro version as well. Make that 78 times and you will get 1.99999999963 on Free42. Your 12digit HPs have only 3 guard digits and intermediate results are rounded to 12 digits. Free42 has 22 guard digits, so to say, and it does not round intermediate results. The HP rounding philosophy is better explained in these old threads started by Rodger Rosenbaum; What should you get? What should we get, Part 2 

12012017, 09:09 PM
Post: #6




RE: HP calcs are really not that accurate..
Thanks for all your answers. Sorry, thogh, for bringing up an "old" issue.
Anyway, I still feel that I'm a tad disappointed, that, in 2013 (time of the Prime purchase), we do not have more accuracy on the calcs. I just tried my maxima program (http://maxima.sourceforge.net/) to 1024 decimals with "bfloat" command, the same, though "only" 2 iterations. It still returned 2.0 as the answer. (PC win10Pro, Intel i5 CPU) In my opinion, there should be no reason that we should not have, say, at least 256 digits/decimal points accuracy. That goes for any device capable of doing "2+2". Below, the transcript from maxima: Code: (%i7) bfloat (sqrt(2)); Esben 28s, 35s, 49G+, 50G, Prime, SwissMicros DM42 Elektronika MK52 & MK61 

12012017, 10:18 PM
Post: #7




RE: HP calcs are really not that accurate..
What are you trying to represent that requires so many digits?
How can you possibly measure something that accurately? 256 digits are far more than you'd need to represent the diameter of the universe in terms of the planck length. Pauli 

12012017, 10:37 PM
Post: #8




RE: HP calcs are really not that accurate..
DA74254 Wrote:In my opinion, there should be no reason that we should not have, say, at least 256 digits/decimal points accuracy. That goes for any device capable of doing "2+2". Paul_Dale Wrote:What are you trying to represent that requires so many digits? In addition, while computers have gobs of spare memory and awesome (!) floating point processors, calculators do not. Most calculators are not expected to be connected to the wall just to plain work (or charge their batteries after 9 hours of use), they're expected to work after 6 months (or more!) of use just the same as when the battery was first put in. This requires serious compromises in the choices of CPU or multifunction chip so as to make best use of the limited energy resources available from batteries. As previously mentioned, the amount of precision you actually need is often very different from the amount of precision you want. It's also different from the amount of precision you can usefully create yourself due to tolerance factors. 5mm of tolerance in the amount of space required for a bridge would probably be acceptable given other environmental factors, however in the case of aeronautics, 5mm of tolerance on a flight from Auckland to Heathrow would be considered excessive, yet calculators can already give us that degree of precision (average of 10 dp, perhaps with 13 guard digits). Let's not make this a "Schwanzvergleich" discussion. (Post 138) Regards, BrickViking HP50g Casio fx9750G+ Casio fx9750GII (SH4a) 

12022017, 12:13 AM
(This post was last modified: 12022017 12:15 AM by Gerson W. Barbosa.)
Post: #9




RE: HP calcs are really not that accurate..
(12012017 09:09 PM)DA74254 Wrote: In my opinion, there should be no reason that we should not have, say, at least 256 digits/decimal points accuracy. That goes for any device capable of doing "2+2” We can take advantage of long integer numbers in Exact mode on the 49/49G+/50g to get extended accuracy at least for division operations. For instance, evaluate the following program with ‘d’ (number of decimal places) as an argument. « PUSH RAD 105 CF 3 CF DUP .653 * 1.74 + IP R→I DUP 2 MOD + DUP 4 * OVER DUPDUP 1  1 FOR i i SQ SWAP / PICK3 + ROT SWAP 1 STEP INV NIP UNROT + 1  3 0 UNROT FOR i i INV i 2  INV  + 4 STEP  4 * EXPAND FXND DUP SIZE R→I ALOG OVER  PICK3 * SWAP IQUOT + →STR DUP HEAD 51 FC? { "." } { "," } IFTE + SWAP TAIL + 1 ROT 2 + SUB POP » On real hardware you should try low ‘d’ (15 or 20, never 256), unless you don’t mind waiting or draining up your battery set. 

12022017, 01:36 AM
Post: #10




RE: HP calcs are really not that accurate..
Those who prefer to be lied to, so as to hear what they want to hear, should buy nonHP calculators, which fudge the displayed results to look like what they think that the user probably wants to see, with warts shaved off and blemishes hidden behind cosmetics (aka "guard digits").
Those who prefer to be told the truth, and see EXACTLY what the result is, warts and all, should buy HP calculators, whose philosophy is "What You See Is What You Have". All calculators are inaccurate internally. Some just hide that fact by lying to the user, and they get away with it because many users (e.g. DA74254) prefer to be lied to. We HP aficionados prefer the truth. X<> c Joe 

12022017, 01:59 AM
(This post was last modified: 12022017 02:02 AM by Luigi Vampa.)
Post: #11




RE: HP calcs are really not that accurate..
"Joe Horn dixit"
1+ I love your last post ;Ox "It is the mark of an educated mind to rest satisfied with the degree of precision which the nature of the subject admits, and not to seek exactness where only an approximation is possible." Aristotle Saludos Saluti Cordialement Cumprimentos MfG BR + + + + + Luigi Vampa + Free42 LeaGooM9 '<3' I + + + 

12022017, 07:42 AM
Post: #12




RE: HP calcs are really not that accurate..
(12012017 10:18 PM)Paul Dale Wrote: What are you trying to represent that requires so many digits?I'm just nerdy.. I once made a "prime number finder" that took abt one hour to find 115 million primes (all primes below 4.294.967.295 as in unsigned long int) And yes, I know exactly how big my land plot is in square plancks (just over 5,5x10^72) So, for my opinion, the 256 was just arbitrary, based on the todays cpu capabilities. (12012017 10:37 PM)brickviking Wrote: In addition, while computers have gobs of spare memory and awesome (!) floating point processors, calculators do not. Most calculators are not expected to be connected to the wall just to plain work (or charge their batteries after 9 hours of use), they're expected to work after 6 months (or more!) of use just the same as when the battery was first put in. This requires serious compromises in the choices of CPU or multifunction chip so as to make best use of the limited energy resources available from batteries.Regarding the power drain  my phone seems to cope with "massive precision", thoug, as I've learned from this discussion, that may be a lie.. And no, a "mineisbiggerthanyours" discussion was not my intension. (12022017 01:36 AM)Joe Horn Wrote: Those who prefer to be lied to, so as to hear what they want to hear, should buy nonHP calculators, which fudge the displayed results to look like what they think that the user probably wants to see, with warts shaved off and blemishes hidden behind cosmetics (aka "guard digits").Everybody is lied to every day and everybody hears what everybody thinks everybody wants to hear. So no, I do not want to be lied to any more than the next person. Not wanting to step on any toes (which I accidentally did, apparently), I probably should approach this in my first post more like a question than a statement. I did learn something here, which is good. I also learned that the binary operation modus of electronics never can represent decimal output accurate (in short). (This last sentence probably don't sound correct, but English is not my native language). (12022017 01:59 AM)Luigi Vampa Wrote: "Joe Horn dixit"I should have listened to Aristotle.. Esben 28s, 35s, 49G+, 50G, Prime, SwissMicros DM42 Elektronika MK52 & MK61 

12022017, 08:32 AM
Post: #13




RE: HP calcs are really not that accurate..  
12022017, 08:49 AM
Post: #14




RE: HP calcs are really not that accurate..
(12022017 07:42 AM)DA74254 Wrote: I also learned that the binary operation modus of electronics never can represent decimal output accurate (in short). (This last sentence probably don't sound correct, but English is not my native language). To my knowledge, most (if not all) hp calculators do not work internally in binary, but in decimal. Well, in fact they do work in binary, as they use 2level digital circuitry, but use BCD (Binary Coded Decimal) to represent the numbers, thus the maths are done in decimal. The root of the problem is that they use a finite number of digits (decimal or binary) to represent numbers. Regards. p.s. As a note, an wp34s returns 2.000000000000006 (shown as 2, as the display holds 12 digits only). In double mode it returns 1.999999999999999999999999999999974. p.s. 2. Tried what happens when you subtract 2 from the result? César  Information must flow. 

12022017, 08:52 AM
Post: #15




RE: HP calcs are really not that accurate..
(12022017 08:32 AM)Paul Dale Wrote:(12022017 07:42 AM)DA74254 Wrote: And yes, I know exactly how big my land plot is in square plancks (just over 5,5x10^72) I was just checking the surveyors accuracy Btw, I just found out that the diameter of the observable universe is in the area of 54 decillion (longscale numbering) PL Esben 28s, 35s, 49G+, 50G, Prime, SwissMicros DM42 Elektronika MK52 & MK61 

12022017, 08:58 AM
Post: #16




RE: HP calcs are really not that accurate..
(12022017 08:49 AM)emece67 Wrote: p.s. 2. Tried what happens when you subtract 2 from the result?In which program/unit? I tried, just now on the Prime and it shows +0,00000000021. (Home/RPN mode) In CAS (exact mode) it shows 0. Esben 28s, 35s, 49G+, 50G, Prime, SwissMicros DM42 Elektronika MK52 & MK61 

12022017, 09:45 AM
Post: #17




RE: HP calcs are really not that accurate..
This is an issue that keeps coming to our attention and it will continue because it only shows the shortcomings of the calculators when comparing its results with what common people (like me). knows as the true answer.
Even HP did lie on some models (that are not welcomed here) exactly to give the expected answers common people believes are the correct ones. In defense of HP they explain this small lies in the documentation. Divide 1 by 3 and multiply the result by 3 and any non math educated person knows the answer. But this seems impossible to solve on a computer, no matter how many digits it can handle, unless some form of lie or trick is used. Well, the computer is right and the common people too. It is just two different ways to look to the same problem. Jose Mesquita RadioMuseum.org member 

12022017, 10:37 AM
Post: #18




RE: HP calcs are really not that accurate..
I have been lied to, and I don't like it.
Well, some good came out of this. My slight ADHD/ADD, which demands things set square still prefers the "good" answers from the lying calcs, though I myself, upon reading the HP article linked here and the explanations from you, sets things "square" in a better way. With the new understanding, and the 2^3=7,99999999998 issue freshly in mind, I'll settle for the acceptance that infinite answers can't be reproduced in a finite setting. And, using the HP calc formula for cube calculations, I reproduced the same answer in Maxima. Thus, concluding that even Maxima lies to me at will. Thanks again, and to emphasize; it was not my intension to step on anyones toes. Esben 28s, 35s, 49G+, 50G, Prime, SwissMicros DM42 Elektronika MK52 & MK61 

12022017, 10:42 AM
Post: #19




RE: HP calcs are really not that accurate..
(12012017 08:23 PM)Massimo Gnerucci Wrote:(12012017 07:49 PM)DA74254 Wrote: I just sat here, reading the reverb memory thread and my thoughts started to spin about the sqrt(2). 

12022017, 10:56 AM
Post: #20




RE: HP calcs are really not that accurate..
Aristotle? He claimed women have a different number of teeth from men. Discredited.
I'm reminded of Robert Recorde: http://www.hpmuseum.org/forum/thread3223.html 

« Next Oldest  Next Newest »

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