find the rational coefficients of a linear combination
expression; what to attempt to express as a linear combination of elems
list of expressions; elements to use in the linear combination construction
The RationalCoefficients command attempts to solve the equation
with respect to _X1, _X2, ... in rational numbers. If the RationalCoefficients command is successful, a list of rational numbers such that expr is a linear combination of elems with these rational numbers as coefficients is returned; otherwise, the value FAIL is returned.
This function is part of the SolveTools package, and so it can be used in the form RationalCoefficients(..) only after executing the command with(SolveTools). However, it can always be accessed through the long form of the command by using SolveTools[RationalCoefficients](..).
Download Help Document