replace_top2_with_or Function (ROM Call 0x57C)

AMS 2.02 or higher estack.h

void replace_top2_with_or (ESI expr);

Replace the two top-most expressions on the EStack by their logical OR.

The following code:

push_quantum(TRUE_TAG);
ptr = top_estack;
push_quantum(FALSE_TAG);
replace_top2_with_or(ptr);
will leave the true expression on the EStack.
expr should usually be next_expression_index(top_estack).


Uses: push_or, delete_between, next_expression_index, top_estack
Used by: did_push_approx_inflection_point, get_ub, GM_Intersect, GM_Math1, 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_and, push_equals, push_greater_than, push_greater_than_or_equals, push_less_than, push_less_than_or_equals, push_not, push_not_equals, push_xor


See also: replace_top2_with_and