Skip to content

Commit c7c6a8f

Browse files
authored
LE1 add sageplot 3d visualizations (#907)
1 parent fe2f273 commit c7c6a8f

4 files changed

Lines changed: 70 additions & 3 deletions

File tree

source/linear-algebra/source/01-LE/01.ptx

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ system). Otherwise it is <term>inconsistent</term>.<idx><h>linear system</h><h>i
422422
<ol>
423423
<li><em>Consistent with one solution:</em>
424424
its solution set contains a single vector, e.g.
425-
<m>\setList{\left[\begin{array}{c}1\\2\\3\end{array}\right]}</m>
425+
<m>\setList{\left[\begin{array}{c}1\\2\\3\end{array}\right]}</m>,
426+
<xref ref="figure-intersecting-planes-one"/>
426427
</li>
427428
<li>
428429
<em>Consistent with infinitely-many solutions</em>:
@@ -434,16 +435,54 @@ system). Otherwise it is <term>inconsistent</term>.<idx><h>linear system</h><h>i
434435
}{
435436
a\in\IR
436437
}
437-
</m>
438+
</m>,
439+
<xref ref="figure-intersecting-planes-inf"/>
438440
</li>
439441
<li><em>Inconsistent</em>:
440-
its solution set is the empty set, denoted by either <m>\{\}</m> or <m>\emptyset</m>.
442+
its solution set is the empty set, denoted by either <m>\{\}</m> or <m>\emptyset</m>, e.g.
443+
<xref ref="figure-intersecting-planes-zero"/>
441444
</li>
442445
</ol>
443446
</p>
444447
</statement>
445448
</fact>
446449

450+
<figure xml:id="figure-intersecting-planes-one">
451+
<caption>Intersection of three planes at one point</caption>
452+
<image xml:id="LE1-image-intersection-planes-one">
453+
<sageplot variant="3d" aspect="1.0">
454+
<xi:include href="./sage/LE1-image-intersection-planes-one.sage" parse="text"/>
455+
</sageplot>
456+
<description>
457+
<p>Three planes are shown to intersect at a single point. An arrow points to the point of intersection at coordinates <m>(1,2,3)</m>.</p>
458+
</description>
459+
</image>
460+
</figure>
461+
462+
<figure xml:id="figure-intersecting-planes-inf">
463+
<caption>Intersection of three planes at a line</caption>
464+
<image xml:id="LE1-image-intersection-planes-inf">
465+
<sageplot variant="3d" aspect="1.0">
466+
<xi:include href="./sage/LE1-image-intersection-planes-inf.sage" parse="text"/>
467+
</sageplot>
468+
<description>
469+
<p>Three planes are shown to intersect along a line of points.</p>
470+
</description>
471+
</image>
472+
</figure>
473+
474+
<figure xml:id="figure-intersecting-planes-zero">
475+
<caption>Three non-mutually-intersecting planes</caption>
476+
<image xml:id="LE1-image-intersection-planes-zero">
477+
<sageplot variant="3d" aspect="1.0">
478+
<xi:include href="./sage/LE1-image-intersection-planes-zero.sage" parse="text"/>
479+
</sageplot>
480+
<description>
481+
<p>Three planes are shown to intersect at no common point, although each pair of planes intersects along a line of points.</p>
482+
</description>
483+
</image>
484+
</figure>
485+
447486
<activity estimated-time="10">
448487
<statement>
449488
<p>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
x,y,z = var("x y z")
2+
GREEN = "#90EE90"
3+
BLUE = "#7070FF"
4+
PURPLE = "#EE90EE"
5+
RED = "#FF0000"
6+
p = implicit_plot3d(x+y+3*z==3,(x,-5,5),(y,-5,5),(z,-5,5),color=GREEN)
7+
p += implicit_plot3d(2*x-y-3*z==0,(x,-5,5),(y,-5,5),(z,-5,5),color=BLUE)
8+
p += implicit_plot3d(x==1,(x,-5,5),(y,-5,5),(z,-5,5),color=PURPLE)
9+
p
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
x,y,z = var("x y z")
2+
GREEN = "#90EE90"
3+
BLUE = "#7070FF"
4+
PURPLE = "#EE90EE"
5+
RED = "#FF0000"
6+
p = implicit_plot3d(-2*x+y+3*z==9,(x,-5,5),(y,-5,5),(z,-5,5),color=GREEN)
7+
p += implicit_plot3d(x+2*z==7,(x,-5,5),(y,-5,5),(z,-5,5),color=BLUE)
8+
p += implicit_plot3d(x+y+z==6,(x,-5,5),(y,-5,5),(z,-5,5),color=PURPLE)
9+
p += arrow3d((0,0,0), (1,2,3), 1,color=RED,thickness=10)
10+
p
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
x,y,z = var("x y z")
2+
GREEN = "#90EE90"
3+
BLUE = "#7070FF"
4+
PURPLE = "#EE90EE"
5+
RED = "#FF0000"
6+
p = implicit_plot3d(x+y+3*z==3,(x,-5,5),(y,-5,5),(z,-5,5),color=GREEN)
7+
p += implicit_plot3d(2*x-y-3*z==0,(x,-5,5),(y,-5,5),(z,-5,5),color=BLUE)
8+
p += implicit_plot3d(x==3,(x,-5,5),(y,-5,5),(z,-5,5),color=PURPLE)
9+
p

0 commit comments

Comments
 (0)