find the rational coefficients of a linear combination - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Factorization and Solving Equations : SolveTools : SolveTools/RationalCoefficients

SolveTools[RationalCoefficients] - find the rational coefficients of a linear combination

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)

RationalCoefficients1a2,a,2a

12,0

(4)

RationalCoefficients1a2,a2,2a

0,14

(5)

See Also

SolveTools


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam