We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc8e3d commit 26f4424Copy full SHA for 26f4424
source/linear-algebra/exercises/outcomes/EV/EV6/generator.sage
@@ -3,10 +3,16 @@ TBIL.config_matrix_typesetting()
3
4
class Generator(BaseGenerator):
5
def data(self):
6
- #Pick some vectors in R4
7
- n=choice([4,5])
+ #Choose R^4 or R^5, will use 5 or 4 vectors respectively
+ base_dim = choice([4,5])
8
+ vector_count = 9-base_dim
9
+ #answer will be 2 or 3
10
dim=choice([2,3])
- A=CheckIt.simple_random_matrix_of_rank(dim,columns=n,rows=4)
11
+ A=CheckIt.simple_random_matrix_of_rank(
12
+ dim,
13
+ columns=vector_count,
14
+ rows=base_dim
15
+ )
16
basis=[A.column(i) for i in A.pivots()]
17
18
return {
0 commit comments