Full Command and Function Reference 3-187
n
t
runcate
Effect on Level 2 Argument
0 through 11 truncated to n decimal places
–1 through –11 truncated to n significant digits
12 truncated to the current display format
For complex numbers and arrays, each real number element is truncated. For unit objects, the
number part of the object is truncated.
Access: !´
REAL LLTRNC ( ´ is the left-shift of the Pkey).
Flags: Numerical Results (-3)
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
z
1
n
truncate
→
z
2
z
1
'symb
truncate
'
→
'TRNC(z
1
,symb
truncate
)'
'symb
1
' n
truncate
→
'TRNC(symb
1
,n
truncate
)'
'symb
1
' 'symb
truncate
'
→
'TRNC(symb
1
,symb
truncate
)'
[ array ]
1
n
truncate
→
[ array ]
2
x_unit n
truncate
→
y_unit
x_unit 'symb
truncate
'
→
'TRNC(x_unit,symb
truncate
)'
See also: RND
TRUNC
CAS: Truncate a series expansion, performing the expansion, or using a given polynomial.
TRUTH
Type: Command
Description: Truth Plot Type Command: Sets the plot type to TRUTH.
When the plot type is TRUTH, the DRAW command plots the current equation as a truth-
valued function of two real variables. The current equation is specified in the reserved variable
EQ. The plotting parameters are specified in the reserved variable PPAR, which has this form:
{ (x
min
, y
min
) (x
max
, y
max
) indep res axes ptype depend }
For plot type TRUTH, the elements of PPAR are used as follows:
• (x
min
, y
min
) is a complex number specifying the lower left corner of PICT (the lower left corner
of the display range). The default value is (–6.5,–3.1) for the hp48gII and (–6.5,–3.9) for the
hp49g+.
• (x
max
, y
max
) is a complex number specifying the upper right corner of PICT (the upper right
corner of the display range). The default value is (6.5,3.2) for the hp48gII and (6.5,4.0) for the
hp49g+.
• indep is a name specifying the independent variable on the horizontal axis, or a list containing
such a name and two numbers specifying the minimum and maximum values for the
independent variable (the horizontal plotting range). The default value is X.
• res is a real number specifying the interval (in user-unit coordinates) between plotted values of
the independent variable on the horizontal axis, or a binary integer specifying that interval in
pixels. The default value is 0, which specifies an interval of 1 pixel.
• axes is a list containing one or more of the following, in the order listed: a complex number
specifying the user-unit coordinates of the plot origin, a list specifying the tick-mark
annotation, and two strings specifying labels for the horizontal and vertical axes. The default
value is (0,0).