The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

WP34S bug
Message #1 Posted by fhub on 26 July 2011, 9:37 a.m.

Ooops, found one of this nasty animals again:

FP? should give the opposite result compared with INT? but in fact returns the same value!

5 FP? gives true
5.1 FP? gives false

BTW, the new implemented NEXTP is indeed a good idea! :-)

Franz

      
Re: WP34S bug
Message #2 Posted by Walter B on 26 July 2011, 1:37 p.m.,
in response to message #1 by fhub

Hallo Franz,

Thanks for reporting! This bug must have been introduced recently. It's buggy now but works as advertised in build 1108 on my 20b.

Walter

            
Re: WP34S bug
Message #3 Posted by Marcus von Cube, Germany on 26 July 2011, 1:59 p.m.,
in response to message #2 by Walter B

It's working again in the latest build. :-)

                  
Re: WP34S bug
Message #4 Posted by fhub on 26 July 2011, 3:31 p.m.,
in response to message #3 by Marcus von Cube, Germany

Yes, FP? is back again, thanks Marcus! :-)

Franz

Edited: 26 July 2011, 6:09 p.m. after one or more responses were posted

                        
Re: WP34S bug
Message #5 Posted by Neil Hamilton (Ottawa) on 26 July 2011, 3:52 p.m.,
in response to message #4 by fhub

Franz,

If you publish them, I will translate them to the assembler's syntax and put them in the "./library" directory.

Can you make sure you write a little description of the I/O so I don't have to make a mistake reverse engineering anything.

Thanks...

                              
Re: WP34S bug
Message #6 Posted by Paul Dale on 26 July 2011, 5:20 p.m.,
in response to message #5 by Neil Hamilton (Ottawa)

See also JMB's excellent site which has HP-41 programs for factorisation already. These programs port across unchanged usually.

Even so, there are far better algorithms for finding factors that the trial division. The above link has some but there are plenty of others.

- Pauli

                                    
Re: WP34S bug
Message #7 Posted by fhub on 26 July 2011, 5:54 p.m.,
in response to message #6 by Paul Dale

Quote:
Even so, there are far better algorithms for finding factors that the trial division.
Ok, I've got it - program deleted ...

Edited: 26 July 2011, 5:55 p.m.

                                          
Re: WP34S bug
Message #8 Posted by Paul Dale on 26 July 2011, 6:05 p.m.,
in response to message #7 by fhub

Why delete your code? It was a good example of 34s programming.

- Pauli


[ Return to Index | Top of Index ]

Go back to the main exhibit hall