Texas Instruments TI-Nspire CX CAS TINSPIRE-CX-CAS Merkblatt

Produktcode
TINSPIRE-CX-CAS
Seite von 603
504 Libraries
Creating Libraries and Library Objects
A document is regarded as a library when it is saved or copied to the
designated library folder. The default location is:
Windows®: My Documents\TI-Nspire\MyLib.
Mac®: Documents/TI-Nspire/MyLib.
Handheld: MyLib
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