Is_Equivalent_To - Texas Instruments TI-89 Developer's Manual

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

Advertisement

728

is_equivalent_to

Declaration:
Boolean is_equivalent_to (EStackIndex i , EStackIndex j )
Category(ies):
Logic
Description:
Determines whether the expressions indexed by i and j are identical or can
be determined by the CAS to be equivalent.
i, j — Indices of the top tags of internally-simplified expressions or
Inputs:
Outputs:
Returns TRUE if the expressions indexed by i and j are identical or can be
determined by the CAS to be equivalent. Otherwise returns FALSE, even
though they might actually be equivalent.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
None
Differences:
See Also:
compare_expressions, are_expressions_identical
Example:
push_quantum_as_nonnegative_int (2u);
exponent = top_estack;
push_quantum (8u);
add1_to_top ();
replace_top2_with_pow (exponent);
unexpanded = top_estack;
push_quantum_as_nonnegative_int (2u);
coefficient = top_estack;
push_quantum (8u);
replace_top2_with prod (coefficient);
add1_to_top();
partial_sum = top_estack;
push_quantum_as_nonnegative_int (2u);
exponent = top_estack;
push_quantum (8u);
replace_top2_with_pow (exponent);
replace_top2_with_sum (partial_sum);
is_equivalent_to (top_estack, unexpanded);
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Logic
strings.
/* push x */
/* top_estack -> x + 1 */
/* unexpanded -> (x + 1)^2 */
/* push x */
/* top_estack -> 2 * x
/* partial_sum -> 2 * x + 1
/* push x */
/* top_estack -> x^2 */
/* top_estack -> x^2 + 2 * x + 1
/* Returns TRUE */
Not for Distribution
*/
*/
*/
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