782
Appendix A: System Routines — Math
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_factor
Declaration:
void
push_factor
(EStackIndex
i
, EStackIndex
vf
,
FCTR_AMOUNT
fctr_amount
)
Category(ies):
Math
Description:
If
i
indexes a numeric tag then:
If POLY_OR_NMBR_FCTR is equal to
fctr_amount
and NULL_INDEX is
equal to
vf
or SQFREE_AND_NMBR_FCTR <=
fctr_amount
, then the
factored equivalent is pushed; otherwise the number is pushed. Otherwise
the expression is factored through
vf
, or with respect to all of its variables if
vf
is NULL_INDEX.
Complex factors are sought only if IS_DOMAIN_COMPLEX.
Consider 6x^6 - 6x^4 - 6x^2 + 6 with
vf
= NULL_INDEX and
IS_DOMAIN_REAL:
REAL_FCTRS_ONLY -> 6 (x - 1)^2 (x + 1)^2
POLY_FCTR -> 6 (x - 1)^2 (x + 1)^2 (x^2 + 1)
POLY_OR_NMBR_FCTR -> 6 (x - 1)^2 (x + 1)^2 (x^2 + 1)
SQFREE_AND_NMBR_FCTR -> 2
†
3 (x^2 - 1)^2 (x^2 + 1)
POLY_AND_NMR_FCTR -> 2
†
3 * (x - 1)^2 (x + 1)^2 (x^2 + 1)
Inputs:
i
— Indexes the top tag of an algebraic expression, an
algebraic comparison, or an aggregate thereof.
vf
— Equal to NULL_INDEX or indexes the top tag of a
variable.
fctr_amount
— One of REAL_FCTRS_ONLY, POLY_FCTR,
POLY_OR_NMBR_FCTR,
SQFREE_AND_NMBR_FCTR, or
POLY_AND_NMBR_FCTR.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
(continued)