Application Guide

476 Libraries
If the folder has been inadvertently deleted, you must create it before attempting to
use libraries.
You can define library objects using either the Program Editor or the Calculator
application. Library objects must be defined with a Define command and must reside
in the first problem of a library document.
Note: If you use the Program Editor to define a library function or program, you must
store the object and also save the document. Saving the document does not
automatically store the object. For more information, see Programming.
Naming restrictions apply to library documents and library objects.
A library document name must be a valid variable name between 1 and 16
characters long, and it must not contain a period or begin with an underscore.
A library object name must be a valid variable name between 1 and 15 characters
long. It must not contain a period and must not begin with an underscore.
Private and Public Library Objects
When you define a library object, you designate it as private (LibPriv) or public (LibPub).
Define a=5
a is not a library object.
Define LibPriv b={1,2,3}
b is a private library object.
Define LibPub func1(x)=x^2 - 1
func1 is a public library object.
A Private library object does not appear in the Catalog, but you can access it by typing
its name. Private objects serve well as building blocks that perform basic, low-level
tasks. Typically, private library objects are called upon by the public functions and
programs.
A Public library object appears in the Catalog’s library tab after you refresh the
libraries. You can access a public library object through the Catalog or by typing its
name.
Mac® only: In version 1.4 of the software, a library document name cannot contain
extended characters, such as Ö, á, or ñ.
Note: In library programs and functions defined as public, a comment line (©)
immediately following the Prgm or Func line is automatically displayed as help in the
Catalog. You could, for example, show a syntax reminder there.