EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #711 background imageLoading...
Page #711 background image
Appendix A: System Routines — Lists and Matrices
669
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
all_tail
Declaration:
Boolean
all_tail
(Boolean (*
bool_fun
) (EStackIndex), EStackIndex
i
)
Category(ies):
Lists and Matrices, Math
Description:
Determines whether the
bool_fun
returns TRUE for each expression in the
tail of expressions indexed by
i
.
Inputs:
bool_fun
A Boolean function that takes the index of an expression as
its one argument.
i
Index of a tail.
Outputs:
Returns TRUE if
bool_fun
returns TRUE for each expression in the tail of
expressions indexed by
i
. Otherwise returns FALSE.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: any_tail, map_tail, did_map_aggregate_arg
Example:
Boolean is_constant (EStackIndex i)
/* Returns TRUE if the expression indexed by i is free of all variables.
See also the slightly different function likely_approx_to_number.
Otherwise returns FALSE.
*/
{ for (;;)
if (IS_NUM_VAR_OR_ZERO_ARG_TAG (ESTACK (i)))
return (! IS_VARIABLE_TAG (ESTACK (i)));
else if (IS_ONE_ARG_TAG (ESTACK (i)))
--i; /* Loop to check the one argument */
else if (IS_TWO_ARG_TAG (ESTACK (i)))
if (is_constant (--i))
i=next_expression_index(i); /* Loop to check 2nd arg */
else return FALSE;
else
{ if (USER_FUN_TAG == ESTACK (i--))
i = next_expression_index (i); /* Skip function name */
return all_tail (is_constant, i);
}
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals