[Main]
Name=remaining_factors_index
Type=Function
Subtype=ROM Call
Header Files=estack.h
Definition=ESI remaining_factors_index (CESI ptr);
Attributes=__attribute__((__pure__))
MinAMS=1.01

[ROM Call]
Index=$2F1

[Description]
Gets the index of remaining factors of an expression.

[Explanation]
If <I>ptr</I> points to the <A HREF="$$LINK(estack.h/Tags)">MUL_TAG</A>, which is a case when it
points to an expression of form <I>factor1</I>&nbsp;*&nbsp;<I>factor2</I>&nbsp;*&nbsp;<B>...</B>
(i.e. if the expression is a sum of simpler terms), remaining_factors_index returns the pointer
to the subexpression <I>term2</I>&nbsp;*&nbsp;<B>...</B> (i.e. to the remaining
factors of the expression). If <I>ptr</I> does not point to the
<A HREF="$$LINK(estack.h/Tags)">MUL_TAG</A> (i.e. if the expression is not a product of simpler factors),
remaining_factors_index returns a pointer to a simple expression which
consists only of number 1.
<BR><BR>
<B>Note:</B> Expressions in internal canonic form have the most main factor shallowest, with less main factors
below that (see <A HREF="$$LINK(estack.h/compare_expressions)">compare_expressions</A> for more info about "main"
ordering). Also, the lead factor of an internally-simplified product is never a product.
For example, remaining factors of <CODE>'(3*x^2)*y'</CODE> converted into canonic form
are <CODE>'3*y'</CODE>. By default, similar powers of the main variable are collected, so
remaining factor of <CODE>'x^2*y+x^2'</CODE> after conversion into canonic form is
<CODE>'y+1'</CODE>. Internally-simplified numeric denominator factors are combined with
numeric numerator factors into a fractional numeric factor. Non-numeric denominator
factors are internally simplified to be merged with numerator factors as negative powers.
See <A HREF="$$LINK(estack.h/push_internal_simplify)">push_internal_simplify</A>
for more info about how to convert an expression into the internal canonic form.

[References]
In=estack.h/is_monomial, estack.h/is_monomial_in_kernel, basfunc.h/did_push_anti_deriv, basfunc.h/did_push_series, basfunc.h/push_1st_derivative, basfunc.h/push_abs, basfunc.h/push_acosh, basfunc.h/push_asin, basfunc.h/push_asinh, basfunc.h/push_atan, basfunc.h/push_atanh, basfunc.h/push_comdenom, basfunc.h/push_cosh, basfunc.h/push_csolve, basfunc.h/push_czeros, basfunc.h/push_def_int, basfunc.h/push_denominator, basfunc.h/push_desolve, basfunc.h/push_exp, basfunc.h/push_expand, basfunc.h/push_extended_prod, basfunc.h/push_factor, basfunc.h/push_floor, basfunc.h/push_im, basfunc.h/push_lim, basfunc.h/push_ln, basfunc.h/push_max, basfunc.h/push_min, basfunc.h/push_nsolve, basfunc.h/push_numerator, basfunc.h/push_phase, basfunc.h/push_re, basfunc.h/push_sign, basfunc.h/push_sin2, basfunc.h/push_sinh, basfunc.h/push_solve, basfunc.h/push_summation, basfunc.h/push_tanh, basfunc.h/push_zeros, basop.h/did_push_to_polar, basop.h/push_equals, basop.h/push_exponentiate, basop.h/push_greater_than, basop.h/push_greater_than_or_equals, basop.h/push_less_than, basop.h/push_less_than_or_equals, basop.h/push_negate, basop.h/push_not_equals, basop.h/push_product, basop.h/push_sum, basop.h/push_to_cylin, basop.h/push_to_sphere, estack.h/add_to_top, unknown.h/are_units_consistent, unknown.h/did_push_divide_units, unknown.h/get_ub, unknown.h/has_unit_base, unknown.h/index_if_pushed_binomial_info, unknown.h/index_if_pushed_qquad_info, unknown.h/index_reductum_with_tag_base, unknown.h/index_rmng_factor, unknown.h/index_rmng_fctrs_start_base, unknown.h/index_rmng_fctrs_start_base_tag, unknown.h/index_rmng_fctrs_start_fctr_tag, estack.h/is_negative, estack.h/is_nonnegative, estack.h/is_nonpositive, estack.h/is_positive, unknown.h/is_term_improper, unknown.h/push_auto_units_conversion, unknown.h/push_but_factor, unknown.h/push_but_term, unknown.h/push_constant_factors, unknown.h/push_constant_terms, unknown.h/push_dependent_factors, unknown.h/push_dependent_terms, unknown.h/push_gcd_then_cofactors, unknown.h/push_independent_factors, unknown.h/push_independent_terms, unknown.h/push_make_proper, unknown.h/push_nonconstant_factors, unknown.h/push_nonconstant_terms, unknown.h/push_nonnumeric_factors, unknown.h/push_poly_qr, unknown.h/push_reciprocal, unknown.h/push_standardize, unknown.h/raise_to_top, unknown.h/replace_top_with_post_simplified, unknown.h/replace_top2_with_pow, unknown.h/replace_top2_with_sum, unknown.h/_ROM_CALL_48D
Out=estack.h/next_expression_index, unknown.h/Float1Index, unknown.h/Integer1Index
