CMLIB
Cyno Math Library
Version 1.00

Freeware. 12-04-1994

Copyright (C) 1994 by Chieh Cheng. All Rights Reserved.

This is a math routine library for the HP 48. It includes various
routines to accomplish tasks that may be used in your programs. It
is released in library form, so programs using the library do not
need to include the routines in their own directories. It saves
memory when a number of programs require the same routines.

To install the library, upload CM.LIB onto your HP 48, recall it
to the stack, store it into one of the ports, turn your calculator
off, and then turn it back on. CM.LIB may be deleted from your
calculator afterward.

This library may be distributed freely alone or along with your
own programs as long as no modification are made to the library
itself. You may charge a fee for your software, but not for this
library.

The most current version of this library may be obtained from me
at one of the following:

Chieh Cheng

17914 Florwood Avenue
Torrance, CA. 90504-3847

chieh@eecs.ukans.edu

http://falcon.cc.ukans.edu/~mothball/

--------------------------------------------------------------------

Command Reference

CMLVER

  Returns the name and version of this library. User-RPL

          -> "CMLIB"
             "Cyno Math Library"
             "1.00"
             "Copyright (C) 1994 by Chieh Cheng. All Rights Reserved."

GODEL?

  Test to see if a number is a Godel number. The number may only be 12
  digits in length; the automatic rounding of the HP 48 cause an
  inaccurate answer. User-RPL

        n -> "number" 0/1


NTHPRIME

  Returns the nth prime. It also generates a variable, %PRIME, in the
  current directory, containing a list of primes generated. If %PRIME
  already exists, NTHPRIME extracts the nth prime from %PRIME, or
  generates new primes and appends them to %PRIME. User-RPL
  Requires Cyno Basic Library.

        n -> x
             x = nth prime

NXTPRIME

  Returns the next prime. n need not be a prime.

        n -> x
             x = next prime

ODD?

  Tests to see if an integer is odd. May check for even simply by
  taking the negation (ODD? NOT). Returns 1 if n is odd. User-RPL

        n -> 0/1

PRIME?

  Tests to see if an integer is a prime. Returns 1 if n is a prime.
  User-RPL

        n -> 0/1
