Construction of rational functions.
1 2 3 4 5 6 7 8 9
A rational function object could be constructed either by
rationalfun() or by calling
rationalfun() constructs a rational function from
the coefficient vectors of the numerator and the
denominator. For example, consider a rational function
R(x) = P(x) / Q(x) where
P(x) = p + p * x + p * x^2 + ... + p[k]* x^(k-1)
Q(x) = q + q * x + q * x^2 + ... + q[m]* x^(m-1)
, you may call
rationalfun(p[1:k], q[1:m]) to build the object.
rationalfun.poly(), it receives two objects of
class "polynomial" from the polynom package,
representing the polynomials of the numerator and the
denominator respectively. Use this function if you
already have objects of "polynomial" class, typically by
rfun.poly() are aliases of
order to type fewer letters.
The value returned by
rationalfun.poly() is an object of class
"rationalfun". You can coerce the object to a function,
as.function.rationalfun(), or to
a character string, by calling
Objects of "ratioanlfun" class support basic operators
"^". To evaluate a rational function at a
given vector, use
compute the derivative and integral in explicit
An object of class "rationalfun".
1 2 3 4 5 6 7 8 9 10