re_index Function (ROM Call 0x2F2)

AMS 1.01 or higher estack.h

ESI re_index (CESI ptr);

Gets the index of the real part of an expression.

If ptr points to the COMPLEX_TAG (i.e. if the expression is complex), re_index returns the pointer to the real part of the expression. If ptr does not point to the COMPLEX_TAG (i.e. if the expression is real), re_index returns ptr (i.e. the pointer to the expression itself).

Note: The expression should be in internal canonic form (see push_internal_simplify), else this function is not reliable.


Uses: next_expression_index
Used by: did_push_anti_deriv, push_1st_derivative, push_csolve, push_czeros, push_def_int, push_desolve, push_lim, push_max, push_min, push_nsolve, push_solve, push_zeros, push_equals, push_greater_than, push_greater_than_or_equals, push_less_than, push_less_than_or_equals, push_not_equals, get_ub, is_neg_lead_numr_coef_re_part