Random Vectors

Description

We can produce random elements of a vector space with the .random_element() method. This is useful for illustrating elements of vector spans

Sage Cell

Code

V = QQ^3
S = V.span([vector(QQ, [2, 3, 5]), vector(QQ, [7, 11, 13])])
vecs = [(i, S.random_element()) for i in range(10)]
vecs

Options

none

Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.

Attribute

Permalink:

Author:

Date: 10 Apr 2020 16:41

Submitted by: Zane Corbiere

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License