Page 1 of 1

Discrepancy between DM42 and Hp 50g

Posted: Thu Mar 11, 2021 11:29 pm
by jvanoort
Hi all,

I posted this on the HP forum as well, but since it also relates to the DM42 I thought I’d ask here too.
I hope you guys don’t mind.

Today I calculated the energy flux from the sun using the Stefan Bolzmann equation:
EF = sT^4. So as follows:

5777
4
Y^X
5.67E-8
*

On my DM42 and WP34s the result is: 63152788.1436
On my HP 35s and 50g however the result is: 63152788.1439

On my computer Python agrees with my DM42 and WP34s

All display settings were the same on all machines.

What might be causing this difference?

Re: Discrepancy between DM42 and Hp 50g

Posted: Fri Mar 12, 2021 12:22 am
by Joe Horn
Here's what I replied to your question on the MoHPC forum:

The 35s and 50g (and most other HP models which use BCD math with a 12-digit mantissa) round all intermediate results to 12 significant digits. You'll get the same result on your DM42 if you put it into SCI 11 mode and execute RND after each operation, which is essentially what the 35s and 50g do automatically.

Re: Discrepancy between DM42 and Hp 50g

Posted: Fri Mar 12, 2021 12:25 am
by jvanoort
Hi Joe, I did as you suggested and got the same result indeed. Thank you!