Maxima Function
bothcoef (expr, x)
Returns a list whose first member is the
coefficient of x in expr (as found by ratcoef
if expr is in CRE form
otherwise by coeff
) and whose second member is the remaining part of
expr. That is, [A, B]
where expr = A*x + B
.
Example: