Push_Assignment - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

1142

push_assignment

Declaration:
void push_assignment (EStackIndex i )
Category(ies):
Variables
Description:
Assigns a value to a symbol in the symbol table. It is the primary
processing routine for the store operator and the Define command.
i
Inputs:
Outputs:
The external tokenized form of the value is stored as the value of the
symbol and is pushed on the top of the estack.
Assumptions:
None
Side Effects:
May expand expression stack or cause heap compression. May throw an
error associated with simplification of the value or the specified symbol
name.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
/* The QR command performs the QR decomposition of a matrix. The command is given a
matrix, a symbol name in which to store the Q matrix, and a symbol name to store
the R matrix. Toward the end of the process the QR command has built the Q and R
matrices on the expression stack with the R matrix top-most and the Q matrix below
it. The estack indexes q and r reference these matrices. The estack indexes qsym
and rsym reference the symbol names. The estack index old_top references the top of
the stack when the QR command received control. The QR command takes the following
steps to store the matrices to the appropriate symbols.
*/
.
.
.
push_expression (rsym);
push_assignment (top_estack);
top_estack = q;
/* throw away the stack copy of the R matrix and symbol name */
push_expression (qsym);
push_assignment (top_estack);
top_estack = old_top;
.
.
.
TI-89 / TI-92 Plus Developer Guide
— EStackIndex of an assignment pair. The topmost expression is the
symbol. The next expression below the symbol is the value to be
stored. (The value can be specified in internal or external tokenized
form.)
/* push the symbol name above the R matrix */
/* store the R matrix into the symbol */
/* push the symbol name above the Q matrix */
/* store the Q matrix into the symbol */
/* restore original stack position before return */
Not for Distribution
Appendix A: System Routines — Variables
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents