add_to_top Function (ROM Call 0x518)

AMS 2.02 or higher estack.h

void add_to_top (CESI ptr);

Adds a value to the expression on the top of the estack.

add_to_top adds the expression pointed to by ptr to the expression currently at the top of the estack and stores the result to the top of the estack, in place of the expression that was added to.


Uses: are_expressions_identical, check_estack_size, compare_expressions, delete_between, delete_expression, deleted_between, deleted_expression, estack_number_to_Float, factor_base_index, factor_exponent_index, integer_non_unknown, is_advanced_tag, is_constant, is_minus1, is_nonnegative, is_positive, is_variable, is_whole_number, is0, is1, lead_base_index, lead_exponent_index, lead_factor_index, lead_term_index, likely_approx_to_number, move_between_to_top, moved_between_to_top, next_expression_index, push_between, push_expr_quantum, push_expr2_quantum, push_expression, push_Float, push_offset_array, push_quantum, push_quantum_pair, reductum_index, remaining_factors_index, should_and_did_push_approx_arg2, top_estack, push_abs, push_approx, push_ceiling, push_cos, push_denominator, push_mod, push_numerator, push_sin, push_arg_minus_1, push_arg_plus_1, push_difference, push_exponentiate, push_negate, push_pow, push_product, push_square, push_sum, ST_helpMsg, XR_stringPtr, fabs, sqrt, _bcd_math, _du16u16, _ds32s32, _ms32s32, compare_numbers, estack_to_float, FloatMinus1Index, FloatPiIndex, get_lb, get_ub, Integer0Index, Integer1Index, Integer2Index, IntegerMinus1Index, is_real, is_reciprocal_of_quantum, primary_tag_list, push_but_factor, push_quantum_as_nonnegative_int, push_reciprocal, raise_to_top, replace_top2_with_imre, replace_top2_with_prod, replace_top2_with_ratio, times_top, ROM Call 0x4DF, ROM Call 0x4EA, ROM Call 0x4EB, ROM Call 0x4EC, ROM Call 0x4EF, ROM Call 0x4F2
Used by: add1_to_top, is_antisymmetric, is_negative, is_nonnegative, is_nonpositive, is_positive, subtract1_from_top, did_push_anti_deriv, did_push_series, push_1st_derivative, push_asin, push_atan, push_comdenom, push_csolve, push_czeros, push_def_int, push_denominator, push_desolve, push_expand, push_extended_prod, push_factor, push_floor, push_im, push_integer_remainder, push_is_prime, push_lim, push_max, push_min, push_mod, push_mrowadd, push_nsolve, push_numerator, push_phase, push_re, push_rowadd, push_rowdim, push_sin2, push_solve, push_sumlist, push_summation, push_tanh, push_zeros, did_push_to_polar, push_degrees, push_difference, push_dot_sub, push_equals, push_exponentiate, push_greater_than, push_greater_than_or_equals, push_less_than, push_less_than_or_equals, push_list_plus, push_negate, push_not_equals, push_product, push_sum, push_to_cylin, push_to_sphere, are_units_consistent, get_ub, index_if_pushed_qquad_info, push_auto_units_conversion, push_but_factor, push_but_term, push_constant_factors, push_constant_terms, push_dependent_factors, push_dependent_terms, push_div_dif_1f, push_gcd_then_cofactors, push_independent_factors, push_independent_terms, push_lu_fact, push_make_proper, push_nonconstant_factors, push_nonconstant_terms, push_nonnumeric_factors, push_poly_qr, push_reciprocal, push_standardize, raise_to_top, replace_top_with_post_simplified, replace_top2_with_pow, replace_top2_with_sum, push_dense_poly_eval


See also: subtract_from_top, and_onto_top, negate_top, add1_to_top