
Page 21-27
Enter values of V = 0.01_m^3, T = 300_K, and n = 0.8_mol. Before pressing
`
, the stack will look like this:
Press
`
to get the result 199548.24_J/m^3, or 199548.24_Pa = 199.55
kPa.
Input through input forms
Function INFORM (
„°L
@)@@IN@@ @INFOR@
.) can be used to create detailed
input forms for a program. Function INFORM requires five arguments, in this
order:
1. A title: a character string describing the input form
2. Field definitions: a list with one or more field definitions {s
1
s
2
… s
n
},
where each field definition, s
i
, can have one of two formats:
a. A simple field label: a character string
b. A list of specifications of the form {“label” “helpInfo” type
0
type
1
… type
n
}. The “label” is a field label. The “helpInfo”
is a character string describing the field label in detail, and
the type specifications is a list of types of variables allowed
for the field (see Chapter 24 for object types).
3. Field format information: a single number
col
or a list {
col tabs
}. In
this specification,
col
is the number of columns in the input box, and
tabs
(optional) specifies the number of tab stops between the labels
and the fields in the form. The list could be an empty list. Default
values are
col
= 1 and
tabs
= 3.
4. List of reset values: a list containing the values to reset the different
fields if the option
@RESET
is selected while using the input form.
5. List of initial values: a list containing the initial values of the fields.