| im_index | Function (ROM Call 0x2CC)

AMS 1.01 or higher | estack.h

ESI im_index (CESI ptr);

Gets the index of the imaginary part of an expression.

If ptr points to the COMPLEX_TAG (i.e. if the expression is complex), im_index returns the pointer to the imaginary part of the expression. If ptr does not point to the COMPLEX_TAG (i.e. if the expression is real), im_index returns a pointer to a simple zero expression, i.e. expression which consists only of the number 0 (floating point or integer, depending on whether the approximation mode is active or not).
Note: The expression should be in internal canonic form (see push_internal_simplify), else this function is not reliable.

Uses: Float0Index, Integer0Index
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