70extern ex
quo(
const ex &a,
const ex &b,
const ex &
x,
bool check_args =
true);
73extern ex
rem(
const ex &a,
const ex &b,
const ex &
x,
bool check_args =
true);
79extern ex
prem(
const ex &a,
const ex &b,
const ex &
x,
bool check_args =
true);
82extern ex
sprem(
const ex &a,
const ex &b,
const ex &
x,
bool check_args =
true);
85extern bool divide(
const ex &a,
const ex &b, ex &q,
bool check_args =
true);
88extern ex
gcd(
const ex &a,
const ex &b, ex *ca =
nullptr, ex *cb =
nullptr,
89 bool check_args =
true,
unsigned options = 0);
92extern ex
lcm(
const ex &a,
const ex &b,
bool check_args =
true);
104extern ex
resultant(
const ex & e1,
const ex & e2,
const ex & s);
Definition of GiNaC's lst.
container< std::list > lst
ex sqrfree(const ex &a, const lst &l)
Compute a square-free factorization of a multivariate polynomial in Q[X].
ex resultant(const ex &e1, const ex &e2, const ex &s)
Resultant of two expressions e1,e2 with respect to symbol s.
ex gcd(const ex &a, const ex &b, ex *ca, ex *cb, bool check_args, unsigned options)
Compute GCD (Greatest Common Divisor) of multivariate polynomials a(X) and b(X) in Z[X].
ex prem(const ex &a, const ex &b, const ex &x, bool check_args)
Pseudo-remainder of polynomials a(x) and b(x) in Q[x].
ex quo(const ex &a, const ex &b, const ex &x, bool check_args)
Quotient q(x) of polynomials a(x) and b(x) in Q[x].
ex sqrfree_parfrac(const ex &a, const symbol &x)
Compute square-free partial fraction decomposition of rational function a(x).
ex lcm(const ex &a, const ex &b, bool check_args)
Compute LCM (Least Common Multiple) of multivariate polynomials in Z[X].
ex decomp_rational(const ex &a, const ex &x)
Decompose rational function a(x)=N(x)/D(x) into P(x)+n(x)/D(x) with degree(n, x) < degree(D,...
ex collect_common_factors(const ex &e)
Collect common factors in sums.
ex rem(const ex &a, const ex &b, const ex &x, bool check_args)
Remainder r(x) of polynomials a(x) and b(x) in Q[x].
ex sprem(const ex &a, const ex &b, const ex &x, bool check_args)
Sparse pseudo-remainder of polynomials a(x) and b(x) in Q[x].
bool divide(const ex &a, const ex &b, ex &q, bool check_args)
Exact polynomial division of a(X) by b(X) in Q[X].
Flags to control the behavior of gcd() and friends.
@ use_sr_gcd
By default GiNaC uses modular GCD algorithm.
@ no_part_factored
GiNaC tries to avoid expanding expressions when computing GCDs.
@ no_heur_gcd
Usually GiNaC tries heuristic GCD first, because typically it's much faster than anything else.