Skip to content

Commit 7a38e60

Browse files
committed
added a test in is_linearly_dependent() method for univariate polynomial ring
1 parent 9f68b47 commit 7a38e60

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/rings/polynomial/toy_variety.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ def is_linearly_dependent(polys) -> bool:
169169
False
170170
sage: is_linearly_dependent([])
171171
False
172+
sage: R.<x> = PolynomialRing(QQ)
173+
sage: B = [x^147 + x^99,
174+
....: 2*x^123 + x^75,
175+
....: x^147 + 2*x^123 + 2*x^75,
176+
....: 2*x^147 + x^99 + x^75]
177+
sage: is_linearly_dependent(B)
178+
True
172179
"""
173180
if not polys:
174181
return False

0 commit comments

Comments
 (0)