AngouriMath
RationalFunction
Description
Summary
A canonical form for rational functions over Q : two expressions denoting the
same quotient of polynomials become the identical tree, so that deciding whether they
are equal is a structural comparison rather than a search.
same quotient of polynomials become the identical tree, so that deciding whether they
are equal is a structural comparison rather than a search.
Remarks
none for the whole of it — zero-equivalence is undecidable once
exponential, the trigonometric functions and
— so the boundary is in the signature: a refusal means "not a rational function over
#934.
AsSingleFraction takes -- without it
by their multivariate greatest common divisor, which
PolynomialGcd computes and verifies. Then both are scaled so that the
denominator's leading coefficient is one, which is what makes
widens the domain —
which moves its denominator into the numerator:
answer carries the condition that neither vanishes, which is what the library already
does elsewhere and what keeps "equal trees means equal expressions" true rather than
nearly true; the condition is written canonically too, square-free and without what
the denominator already excludes. A sum is defined exactly where its terms are, and the
common denominator vanishes exactly where one of theirs does, so gathering one widens
nothing. #1618
Members
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4862 pages online