Reference Guide
Full Command and Function Reference 3-11
AMORT
Type: Command
Description: Amortize Command: Amortizes a loan or investment based upon the current amortization
settings.
Values must be stored in the TVM variables (I%YR, PV, PMT, and PYR). The number of
payments n is taken from the input together with flag –14.
Access: @& Î
TVM AMORT
(Î is the left-shift of the 7key).
Flags: Financial Payment Mode (–14)
Input/Output:
Level 1/Argument 1 Level 3/Item 1 Level 2/Item 2 Level 1/Item 3
n
→
principal
interest
balance
See also: TVM, TVMBEG, TVMEND, TVMROOT
AND
Type: Function
Description: And Function: Returns the logical AND of two arguments.
When the arguments are binary integers or strings, AND does a bit-by-bit (base 2) logical
comparison.
•
An argument that is a binary integer is treated as a sequence of bits as long as the current
wordsize. Each bit in the result is determined by comparing the corresponding bits (bit
1
and
bit
2
)
in the two arguments as shown in the following table.
bit
1
bit
2
bit
1
AND bit
2
0 0 0
0 1 0
1 0 0
1 1 1
•
An argument that is a string is treated as a sequence of bits, using 8 bits per character (that is,
using the binary version of the character code). The two string arguments must have the same
number of characters.
When the arguments are real numbers or symbolics, AND simply does a true/false test. The
result is 1 (true) if both arguments are non-zero; it is 0 (false) if either or both arguments are
zero. This test is usually done to compare two test results.
If either or both of the arguments are algebraic expressions, then the result is an algebraic of the
form symb
1
AND symb
2
. Execute →NUM (or set flag –3 before executing AND) to produce a
numeric result from the algebraic result.
Access: …ãL
LOGIC AND
(ã is the right-shift of the 3key).
Flags: Numerical Results (–3), Binary Integer Wordsize (–5 through –10)