Appendix A: System Routines — EStack Arithmetic
497
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_product
Declaration:
void
push_product
(EStackIndex
i
, EStackIndex
j
)
Category(ies):
EStack Arithmetic
Description:
Pushes onto the estack the internally-simplified product of the expressions
indexed by
i
and
j
. If both operands are conforming matrices, it is the matrix
product rather than an element-wise product.
Inputs:
i, j
— Indexes to the top tags of internally-simplified algebraic
expressions, algebraic comparisons, or aggregates thereof.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: times_top, replace_top2_with_prod, push_negate, negate_top
Example:
void push_inner_prod (EStackIndex i, EStackIndex j)
/* Pushes the inner product of two equal-length lists.
Unlike push_dotproduct() it does not apply conj to the second arg.
*/
{ Access_AMS_Global_Variables;
EStackIndex k;
--i;
--j;
push0 ();
while (END_TAG != ESTACK (i))
{ k = top_estack;
push_product (i, j);
replace_top2_with_sum (k);
i = next_expression_index (i);
j = next_expression_index (j);
}
}