RationalFunction R¶
rf.spad line 153 [edit on github]
Utilities that provide the same top-level manipulations on fractions than on polynomials.
- coerce: R -> Fraction Polynomial R
coerce(r)
returnsr
viewed as a rational function overR
.
- eval: (Fraction Polynomial R, Equation Fraction Polynomial R) -> Fraction Polynomial R
eval(f, v = g)
returnsf
withv
replaced byg
. Error: ifv
is not a symbol.
- eval: (Fraction Polynomial R, List Equation Fraction Polynomial R) -> Fraction Polynomial R
eval(f, [v1 = g1, ..., vn = gn])
returnsf
with eachvi
replaced bygi
in parallel, i.e.vi
's
appearing inside thegi
's
are not replaced. Error: if anyvi
is not a symbol.
- eval: (Fraction Polynomial R, List Symbol, List Fraction Polynomial R) -> Fraction Polynomial R
eval(f, [v1, ..., vn], [g1, ..., gn])
returnsf
with eachvi
replaced bygi
in parallel, i.e.vi
's
appearing inside thegi
's
are not replaced.
- eval: (Fraction Polynomial R, Symbol, Fraction Polynomial R) -> Fraction Polynomial R
eval(f, v, g)
returnsf
withv
replaced byg
.
- mainVariable: Fraction Polynomial R -> Union(Symbol, failed)
mainVariable(f)
returns the highest variable appearing in the numerator or the denominator off
, “failed” iff
has no variables.
- multivariate: (Fraction SparseUnivariatePolynomial Fraction Polynomial R, Symbol) -> Fraction Polynomial R
multivariate(f, v)
applies both the numerator and denominator off
tov
.
- univariate: (Fraction Polynomial R, Symbol) -> Fraction SparseUnivariatePolynomial Fraction Polynomial R
univariate(f, v)
returnsf
viewed as a univariate rational function inv
.
- variables: Fraction Polynomial R -> List Symbol
variables(f)
returns the list of variables appearing in the numerator or the denominator off
.