Post Reply 
HP 50g Assume Integer
09-02-2019, 01:18 PM
Post: #1
HP 50g Assume Integer
Hello,

Is there anyway to use the assume function or otherwise on the HP 50g to specify that a variable is an integer?

i.e. like on the HP prime with assume(n,integer)

Thanks
Find all posts by this user
Quote this message in a reply
09-03-2019, 12:21 AM
Post: #2
RE: HP 50g Assume Integer
I haven't found any. I do usually use a "Setup" or "Init" routine to initialize stuff for large programs. For integer stuff I clear flags -3 and -105. In the input stuff I'll use XQ.

I'm finishing off a set of programs to work with continued fractions and quadratic irrationals. I need something like "Assume Integer" too.

I do use FLOOR rather than IP to keep things in integers.

I've got programs to convert a fraction to a list of partial quotients and one to evaluate such a list into a succession of convergents.

Now I have a new one (lots of fiddling around) that converts a quadratic irrational to the repeated its continued fraction and one to convert a list of partial quotients to the quadratic irrational (P+Sqrt(Q))/R.
Find all posts by this user
Quote this message in a reply
Post Reply 




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