IntegerLinearDependence R¶
lindep.spad line 133 [edit on github]
Test for linear dependence over the integers.
- linearDependenceOverZ: Vector R -> Union(Vector Integer, failed)
linearlyDependenceOverZ([v1, ..., vn])returns[c1, ..., cn]ifc1*v1 + ... + cn*vn = 0and not all theci'sare 0, “failed” if thevi'sare linearly independent over the integers.
- linearlyDependentOverZ?: Vector R -> Boolean
linearlyDependentOverZ?([v1, ..., vn])returnstrueif thevi'sare linearly dependent over the integers,falseotherwise.
- particularSolutionOverQ: (Matrix R, Vector R) -> Union(Vector Fraction Integer, failed)
solveLinearlyOverQ([v1, ..., vn], u)returns[c1, ..., cn]such thatc1*v1 + ... + cn*vn = u, “failed” if no such rational numbersci'sexist.
- particularSolutionOverQ: (Vector R, R) -> Union(Vector Fraction Integer, failed)
particularSolutionOverQ([v1, ..., vn], u)returns[c1, ..., cn]such thatc1*v1 + ... + cn*vn = u, “failed” if no such rational numbersci'sexist.
- solveLinearlyOverQ: (Matrix R, Vector R) -> Record(particular: Union(Vector Fraction Integer, failed), basis: List Vector Fraction Integer)
solveLinearlyOverQ([v1, ..., vn], u)returns solution of the systemc1*v1 + ... + cn*vn = uand and a basis of the associated homogeneous systemc1*v1 + ... + cn*vn = 0
- solveLinearlyOverQ: (Vector R, R) -> Record(particular: Union(Vector Fraction Integer, failed), basis: List Vector Fraction Integer)
solveLinearlyOverQ([v1, ..., vn], u)returns solution of the systemc1*v1 + ... + cn*vn = uand and a basis of the associated homogeneous systemc1*v1 + ... + cn*vn = 0