Calculate closest fraction or sqrt...

General discussion about calculators, Swiss Micros or otherwise
Post Reply
fridlmue
Posts: 12
Joined: Mon Dec 09, 2019 8:57 am
Location: Germany - Saxony

Calculate closest fraction or sqrt...

Post by fridlmue » Sat Jan 04, 2020 11:44 am

Hi there,

when i was searching on a program to calculate somehow close fractions or, even better, show a close pi or sqrt value i found this program:

https://www.hpmuseum.org/software/qpi/42sqpi.htm

Now I'm curious if the behavior on the DM42 is different then on the HP42s.
Because I do net get e.g. sqrt(2) or -sqrt(2) as result. As well I do get values with pi up to 4*pi. But with 5*pi it gives a "normal" fraction. Is this the same on the original HP42s?
Can I modify the code to work as intended on the DM42?
I think this is a very useful program.

Best regards
Friedrich
HP-41cx, HP-35s, DM42

Dani R.
Posts: 285
Joined: Fri May 05, 2017 8:23 pm

Re: Calculate closest fraction or sqrt...

Post by Dani R. » Sat Jan 04, 2020 12:00 pm

For whatever reason, the QPI program is dependent on the set DISP. Therefore I have configured FIX 06 as default.
DM42 SN:00032

fridlmue
Posts: 12
Joined: Mon Dec 09, 2019 8:57 am
Location: Germany - Saxony

Re: Calculate closest fraction or sqrt...

Post by fridlmue » Sat Jan 04, 2020 5:36 pm

Ah, yes, you are right! If I go to more digits it becomes better. Is it possible to change that behavior?
HP-41cx, HP-35s, DM42

cdmackay
Posts: 142
Joined: Fri Oct 05, 2018 6:33 pm
Location: Cambridge, UK
Contact:

Re: Calculate closest fraction or sqrt...

Post by cdmackay » Sun Jan 05, 2020 11:16 pm

I thought that was deliberate, to allow you to set the required accuracy?
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 71B 17B/BII/bII+ 28S 42S/DM42 48GX 50g 35s 30b/WP34S Prime G2
& Casios, Rockwell 18R :)

Post Reply