Rational Coefficients - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SolveTools

  

RationalCoefficients

  

find the rational coefficients of a linear combination

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RationalCoefficients(expr, elems)

Parameters

expr

-

expression; what to attempt to express as a linear combination of elems

elems

-

list of expressions; elements to use in the linear combination construction

Description

• 

The RationalCoefficients command attempts to solve the equation

_X1elems1_X2elems2...+expr=0

  

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](..).

Examples

withSolveTools:

RationalCoefficients2a+3b,4ab,5a+3b

932,58

(1)

RationalCoefficients2a2+3b,a,b

FAIL

(2)

RationalCoefficientsa,a,2a

1,0

(3)

RationalCoefficients12a,a,2a

12,0

(4)

RationalCoefficients12a,a2,2a

0,14

(5)

See Also

SolveTools