
TEVAL
Syntax: TEVAL(parameter)
Returns the time in seconds that it takes to evaluate the parameter.
TYPE
Syntax: TYPE(object)
Returns the type of the object:
0: Real
1: Integer
2: String
3: Complex
4: Matrix
5: Error
6: List
8: Function
9: Unit
14.?: cas object. The fractional part is the cas type.
Variables and programs
The HP Prime has four types of variables: Home variables, App variables, CAS variables, and User variables.
You can retrieve these variables from the Variable menu ( ).
The names of Home variables are reserved; that is, they cannot be deleted from the system and cannot be
used to store objects of any other type than that for which they were designed. For example, A–Z and θ are
reserved to store real numbers, Z0–Z9 are reserved to store complex numbers, and L0–L9 are reserved to
store lists, etc. As a result, you cannot store a matrix in L8 or a list in Z.
Home variables keep the same value in Home and in apps; that is, they are global variables common to the
system. They can be used in programs with that understanding.
App variable names are also reserved, though a number of apps may share the same app variable name. In
any of these cases, the name of the app variable must be qualied if that variable is not from the current app.
For example, if the current app is the Function app, Xmin will return the minimum x-value in the Plot view of
the Function app. If you want the minimum value in the Plot view of the Polar app, then you must enter
Polar.Xmin. App variables represent the denitions and settings you make when working with apps
interactively. As you work through an app, the app functions may store results in app variables as well. In a
program, app variables are used to edit an app’s data to customize it and to retrieve results from the app’s
operation.
CAS variables are similar to the Home real variables A–Z, except that they are lowercase and designed to be
used in CAS view and not Home view. Another dierence is that Home and App variables always contain
values, while CAS variables can be simply symbolic and not contain any particular value. The CAS variables are
not typed like the Home and App variables. For example, the CAS variable t may contain a real number, a list,
or a vector, etc. If a CAS variable has a value stored in it, calling it from Home view will return its contents.
User variables are variables created by the user, either directly or exported from a user program. They provide
one of several mechanisms to allow programs to communicate with the rest of the calculator and with other
Program commands 613
Komentarze do niniejszej Instrukcji