diff --git a/source/linear-algebra/source/01-LE/01.ptx b/source/linear-algebra/source/01-LE/01.ptx
index a2c54d722..9b0099eed 100644
--- a/source/linear-algebra/source/01-LE/01.ptx
+++ b/source/linear-algebra/source/01-LE/01.ptx
@@ -508,7 +508,7 @@ system). Otherwise it is Three planes are shown to intersect at a single point. An arrow points to the point of intersection at coordinates Three planes are shown to intersect along a line of points. Three planes are shown to intersect at no common point, although each pair of planes intersects along a line of points.
- Correct the SageMath code cell below to generate
- an illustration of several vectors belonging to
-
- Based on this illustration, which of these geometrical objects - best describes the span of these two vectors? +
+ In addition to the combinations above, use the interactive below to graph an additional
+ 5 or more vectors belonging to
+
- Which of these geometrical objects
- best describes the span of these two vectors?
+ An interactive that graphs linear combinations of the vectors
+ Which of these geometrical objects best describes the span of these two vectors?
For example,
-
See the below -Sage cell for an illustration. -
-An interactive 3-D plot showing the two vectors in
An interactive 3-D plot showing the vectors in
+ Two interactive 3-D plots showing the two vectors in
+ Two plots showing the two vectors in
-Fix the SageMath code below to visualize
+
+ We can use technology to visualize
-v2 = vector([-2,0,1])
-v3 = vector([-2,-2,2])
-# ...
-linear_combo = a*v1 + b*v2 + c*v3
-
- An interactive 3-D plot showing the span
Rotate the plot to see that the vectors all lie in the same plane.
+Note that the vectors all lie in the same plane.
+diff --git a/source/linear-algebra/source/02-EV/code/ev1-remark-span1.sage b/source/linear-algebra/source/02-EV/code/ev1-remark-span1.sage new file mode 100644 index 000000000..14627afa9 --- /dev/null +++ b/source/linear-algebra/source/02-EV/code/ev1-remark-span1.sage @@ -0,0 +1,9 @@ +v1 = vector([1,-1,2]) +v2 = vector([1,2,1]) + +# illustrate set of two vectors + +p = plot(v1,thickness=5) +p += plot(v2,thickness=5) +p=p.rotate([1,0,0],3*pi/4) +p \ No newline at end of file diff --git a/source/linear-algebra/source/02-EV/code/ev1-remark-span.sage b/source/linear-algebra/source/02-EV/code/ev1-remark-span2.sage similarity index 50% rename from source/linear-algebra/source/02-EV/code/ev1-remark-span.sage rename to source/linear-algebra/source/02-EV/code/ev1-remark-span2.sage index a4a97e350..5db7278ab 100644 --- a/source/linear-algebra/source/02-EV/code/ev1-remark-span.sage +++ b/source/linear-algebra/source/02-EV/code/ev1-remark-span2.sage @@ -1,17 +1,13 @@ v1 = vector([1,-1,2]) v2 = vector([1,2,1]) -# illustrate set of two vectors -p = plot(v1) -p += plot(v2) -show(p) - -# illustrate the *span* that set +# illustrate the *span* p = plot([]) for _ in range(1000): a = randrange(-99,100) b = randrange(-99,100) - p += plot(a*v1+b*v2) -show(p) + p += plot(a*v1+b*v2, thickness=15) +p=p.rotate([1,0,0],3*pi/4) +p \ No newline at end of file diff --git a/source/linear-algebra/source/02-EV/code/ev2-span-visual.sage b/source/linear-algebra/source/02-EV/code/ev2-span-visual.sage index 2d87214d2..4d30a1e44 100644 --- a/source/linear-algebra/source/02-EV/code/ev2-span-visual.sage +++ b/source/linear-algebra/source/02-EV/code/ev2-span-visual.sage @@ -3,8 +3,8 @@ p = plot([]) # define three vectors v1 = vector([1,-1,0]) -v2 = vector(FIXME) -v3 = vector(FIXME) +v2 = vector([-2,0,1]) +v3 = vector([-2,-2,2]) # do this 100 times for _ in range(100): @@ -13,9 +13,9 @@ for _ in range(100): b = randrange(-9,10) c = randrange(-9,10) # create linear combination - linear_combo = a*v1 + b*v2 + FIXME + linear_combo = a*v1 + b*v2 + c*v3 # add it to the plot - p += plot(linear_combo) + p += plot(linear_combo,thickness=2) # show the plot -show(p) +p diff --git a/source/linear-algebra/source/02-EV/doenet/EV1-span-two-vectors.xml b/source/linear-algebra/source/02-EV/doenet/EV1-span-two-vectors.xml new file mode 100644 index 000000000..cfaf9f54e --- /dev/null +++ b/source/linear-algebra/source/02-EV/doenet/EV1-span-two-vectors.xml @@ -0,0 +1,59 @@ +
+ Enter several pairs of coefficients