[comp.sys.handhelds] Some rational number stuff I use

cloos@acsu.buffalo.edu (James H. Cloos) (02/07/91)

As I have not yet replaced my missing cable, I'll just type these in.
(I just realized that I cannot remember the symbol in trans code 3 for the
small pi.  I'll use \Gp below (Greek p) & if that is not correct, please
change it before dl'ing.  (It is mentioned in the User's Guide.

->ZQ gives you something of the form '1+2/3'.  I recomend only using it on
Reals. (Z = INTEGERS, Q = RATIONALS, therfore ZQ = INT+RAT)
I->Q takes an argument indicating the number of digits to use as per TRNC
and RND.  (I is thinner than N in the small font & looks better in the menus.)
I->Qpi and I->ZQ are obvious from the above.

(I used to have RPL versions of these that were more robust, but they were
lost to a mem clear + a bad archive.  Now whenever I mess around w/ RPL
and/or MC, I FREE my ram card, ARCHIVE to it (making sure to turn off the
clock--argh!), save the stack, make the ramcard R/O, & then play around---
does anyone know if the 48 is capable of messing up anything stored in a
RAM card that is switched to R/O?  Do the R/O switches block all incoming
"write-type" signals to the cards?  Is your answer the same for the same
reasons when discussing CMT cards vs. HP cards? Thanx.)

Enjoy.

-JimC
--
James H. Cloos, Jr.		Phone:  +1 716 673-1250
cloos@ACSU.Buffalo.EDU		Snail:  PersonalZipCode:  14048-0772, USA
cloos@ub.UUCP			Quote:  <>

==========--------==========------==========--------==========CUT HERE
%%HP: T(3)A(R)F(.);

DIR
 \->ZQ
	\<< DUP IP SWAP FP \->Q + \>>
 I\->Q
	\<< RCLF 3 ROLLD FIX \->Q SWAP STOF \>>
 I\->Q\Gp
	\<< RCLF 3 ROLLD FIX \->Q\Gp SWAP STOF \>>
 I->ZQ
	\<< RCLF 3 ROLLD FIX \->ZQ SWAP STOF \>>
END