Skip to content

Commit 6397b08

Browse files
authored
Precalculus EQ accessibility (#914)
* Add descriptions to number lines * Add interactives * Add descriptions to interactives * Bump PreTeXt version so interactive descriptions work
1 parent de0f078 commit 6397b08

5 files changed

Lines changed: 322 additions & 46 deletions

File tree

source/precalculus/source/01-EQ/01.ptx

Lines changed: 127 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -294,22 +294,47 @@ where <m>a</m> and <m>b</m> are real numbers and <m>a \neq 0</m>.
294294
<p>
295295
Draw the solution to the inequality on a number line.
296296
<ol marker="A." cols="1">
297-
<li><image><sageplot>
297+
<li><image>
298+
<sageplot>
298299
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
299300
TBIL.numberline_from_intervals(["(-\\infty,2]"])
300-
</sageplot></image></li>
301+
</sageplot>
302+
<description>
303+
<p>A numberline from <m>-9</m> to <m>9</m>.
304+
The left end is shaded until 2, which is marked with a <m>]</m>.
305+
</p>
306+
</description>
307+
</image></li>
301308
<li><image><sageplot>
302309
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
303310
TBIL.numberline_from_intervals(["(-\\infty,2)"])
304-
</sageplot></image></li>
311+
</sageplot>
312+
<description>
313+
<p>A numberline from <m>-9</m> to <m>9</m>.
314+
The left end is shaded until 2, which is marked with a <m>)</m>.
315+
</p>
316+
</description>
317+
</image></li>
305318
<li><image><sageplot>
306319
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
307320
TBIL.numberline_from_intervals(["(2,\\infty)"])
308-
</sageplot></image></li>
321+
</sageplot>
322+
<description>
323+
<p>A numberline from <m>-9</m> to <m>9</m>.
324+
The right end is shaded from 2 onwards, which is marked with a <m>(</m>.
325+
</p>
326+
</description>
327+
</image></li>
309328
<li><image><sageplot>
310329
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
311330
TBIL.numberline_from_intervals(["[2,\\infty)"])
312-
</sageplot></image></li>
331+
</sageplot>
332+
<description>
333+
<p>A numberline from <m>-9</m> to <m>9</m>.
334+
The right end is shaded from 2 onwards, which is marked with a <m>[</m>.
335+
</p>
336+
</description>
337+
</image></li>
313338
</ol> </p>
314339

315340
</statement>
@@ -400,19 +425,43 @@ TBIL.numberline_from_intervals(["[2,\\infty)"])
400425
<li><image><sageplot>
401426
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
402427
TBIL.numberline_from_intervals(["(-\\infty,-8]"])
403-
</sageplot></image></li>
428+
</sageplot>
429+
<description>
430+
<p>A numberline from <m>-9</m> to <m>9</m>.
431+
The left end is shaded until <m>-8</m>, which is marked with a <m>]</m>.
432+
</p>
433+
</description>
434+
</image></li>
404435
<li><image><sageplot>
405436
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
406437
TBIL.numberline_from_intervals(["(-\\infty,-8)"])
407-
</sageplot></image></li>
438+
</sageplot>
439+
<description>
440+
<p>A numberline from <m>-9</m> to <m>9</m>.
441+
The left end is shaded until <m>-8</m>, which is marked with a <m>)</m>.
442+
</p>
443+
</description>
444+
</image></li>
408445
<li><image><sageplot>
409446
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
410447
TBIL.numberline_from_intervals(["(-8,\\infty)"])
411-
</sageplot></image></li>
448+
</sageplot>
449+
<description>
450+
<p>A numberline from <m>-9</m> to <m>9</m>.
451+
The right end is shaded from <m>-8</m> onwards, which is marked with a <m>(</m>.
452+
</p>
453+
</description>
454+
</image></li>
412455
<li><image><sageplot>
413456
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
414457
TBIL.numberline_from_intervals(["[-8,\\infty)"])
415-
</sageplot></image></li>
458+
</sageplot>
459+
<description>
460+
<p>A numberline from <m>-9</m> to <m>9</m>.
461+
The right end is shaded from <m>-8</m> onwards, which is marked with a <m>[</m>.
462+
</p>
463+
</description>
464+
</image></li>
416465
</ol> </p>
417466

418467
</statement>
@@ -447,7 +496,13 @@ TBIL.numberline_from_intervals(["[-8,\\infty)"])
447496
<image><sageplot>
448497
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
449498
TBIL.numberline_from_intervals(["[-2,\\infty)"])
450-
</sageplot></image>
499+
</sageplot>
500+
<description>
501+
<p>A numberline from <m>-9</m> to <m>9</m>.
502+
The right end is shaded from <m>-2</m> onwards, which is marked with a <m>[</m>.
503+
</p>
504+
</description>
505+
</image>
451506
</p>
452507
</answer>
453508
</task>
@@ -463,7 +518,13 @@ TBIL.numberline_from_intervals(["[-2,\\infty)"])
463518
<image><sageplot>
464519
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
465520
TBIL.numberline_from_intervals(["(-13,\\infty)"])
466-
</sageplot></image>
521+
</sageplot>
522+
<description>
523+
<p>A numberline from <m>-14</m> to <m>14</m>.
524+
The right end is shaded from <m>-13</m> onwards, which is marked with a <m>(</m>.
525+
</p>
526+
</description>
527+
</image>
467528
</p>
468529
</answer>
469530
</task>
@@ -479,7 +540,13 @@ TBIL.numberline_from_intervals(["(-13,\\infty)"])
479540
<image><sageplot>
480541
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
481542
TBIL.numberline_from_intervals(["(-\\infty, 3/7]"])
482-
</sageplot></image>
543+
</sageplot>
544+
<description>
545+
<p>A numberline from <m>-9</m> to <m>9</m>.
546+
The left end is shaded until <m>\frac{3}{7}</m>, which is marked with a <m>]</m>.
547+
</p>
548+
</description>
549+
</image>
483550
</p>
484551
</answer>
485552
</task>
@@ -574,19 +641,47 @@ TBIL.numberline_from_intervals(["(-\\infty, 3/7]"])
574641
<li><image><sageplot>
575642
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
576643
TBIL.numberline_from_intervals(["[0,11/2)"])
577-
</sageplot></image></li>
644+
</sageplot>
645+
<description>
646+
<p>A numberline from <m>-9</m> to <m>9</m>.
647+
The line is shaded between <m>0</m> and <m>\frac{11}{2}</m>.
648+
<m>0</m> is marked with a <m>[</m> and <m>\frac{11}{2}</m> is marked with a <m>)</m>.
649+
</p>
650+
</description>
651+
</image></li>
578652
<li><image><sageplot>
579653
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
580654
TBIL.numberline_from_intervals(["[0,5/2)"])
581-
</sageplot></image></li>
655+
</sageplot>
656+
<description>
657+
<p>A numberline from <m>-9</m> to <m>9</m>.
658+
The line is shaded between <m>0</m> and <m>\frac{5}{2}</m>.
659+
<m>0</m> is marked with a <m>[</m> and <m>\frac{5}{2}</m> is marked with a <m>)</m>.
660+
</p>
661+
</description>
662+
</image></li>
582663
<li><image><sageplot>
583664
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
584665
TBIL.numberline_from_intervals(["(5/2,3]"])
585-
</sageplot></image></li>
666+
</sageplot>
667+
<description>
668+
<p>A numberline from <m>-9</m> to <m>9</m>.
669+
The line is shaded between <m>\frac{5}{2}</m> and <m>3</m>.
670+
<m>\frac{5}{2}</m> is marked with a <m>(</m> and <m>3</m> is marked with a <m>]</m>.
671+
</p>
672+
</description>
673+
</image></li>
586674
<li><image><sageplot>
587675
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
588676
TBIL.numberline_from_intervals(["[3,11/2)"])
589-
</sageplot></image></li>
677+
</sageplot>
678+
<description>
679+
<p>A numberline from <m>-9</m> to <m>9</m>.
680+
The line is shaded between <m>3</m> and <m>\frac{11}{2}</m>.
681+
<m>3</m> is marked with a <m>[</m> and <m>\frac{11}{2}</m> is marked with a <m>)</m>.
682+
</p>
683+
</description>
684+
</image></li>
590685
</ol> </p>
591686

592687
</statement>
@@ -623,7 +718,14 @@ TBIL.numberline_from_intervals(["[3,11/2)"])
623718
<image><sageplot>
624719
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
625720
TBIL.numberline_from_intervals(["[-4,-3)"])
626-
</sageplot></image>
721+
</sageplot>
722+
<description>
723+
<p>A numberline from <m>-9</m> to <m>9</m>.
724+
The line is shaded between <m>-4</m> and <m>-3</m>.
725+
<m>-4</m> is marked with a <m>[</m> and <m>-3</m> is marked with a <m>)</m>.
726+
</p>
727+
</description>
728+
</image>
627729
</p>
628730
</answer>
629731
</task>
@@ -639,7 +741,14 @@ TBIL.numberline_from_intervals(["[-4,-3)"])
639741
<image><sageplot>
640742
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
641743
TBIL.numberline_from_intervals(["[-12,4)"])
642-
</sageplot></image>
744+
</sageplot>
745+
<description>
746+
<p>A numberline from <m>-14</m> to <m>14</m>.
747+
The line is shaded between <m>-12</m> and <m>4</m>.
748+
<m>-12</m> is marked with a <m>[</m> and <m>4</m> is marked with a <m>)</m>.
749+
</p>
750+
</description>
751+
</image>
643752
</p>
644753
</answer>
645754
</task>

source/precalculus/source/01-EQ/03.ptx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@
1616
<introduction>
1717
<p> The points <m> A </m> and <m> B </m> are shown in the graph below. Use the graph to answer the following questions:
1818
</p>
19-
<figure xml:id="line-segment"><image>
20-
<sageplot>
21-
A = point((2,6),size=40)+text('A',(2.05,6),horizontal_alignment="left", gridlines=[[2,2.5,3.0,3.5,4],[2,2.5,3.0,3.5,4,4.5,5.0,5.5,6]])
22-
B = point((4,2),size=40)+text('B',(4.05,2),horizontal_alignment="left")
23-
L=line([(2,6),(4,2)],color="purple")
24-
A+B+L
25-
</sageplot>
26-
</image></figure>
19+
<figure xml:id="figure-eq3-right-triangle">
20+
<caption>Interactive for constructing a right triangle</caption>
21+
<interactive label="EQ3-interactive-right-triangle" platform="doenetml" width="100%">
22+
<slate surface="doenetml">
23+
<xi:include parse="text" href="doenet/EQ3-distance-pythagorean.xml"/>
24+
</slate>
25+
<description><p>Interactive allowing users to drag a point to make a right triangle
26+
with the given line segment as its hypotenuse.
27+
</p></description>
28+
</interactive>
29+
</figure>
2730
</introduction>
2831
<task>
2932
<statement>
@@ -179,16 +182,15 @@
179182
<introduction>
180183
<p> Two line segments are shown in the graph below. Use the graph to answer the following questions:
181184
</p>
182-
<figure xml:id="two-line-segments"><image>
183-
<sageplot>
184-
A = point((8,2),size=40)+text('A',(8.1,2),horizontal_alignment="left", gridlines=[[2,3,4,5,6,7,8],[2,2.5,3,3.5,4,4.5,5,5.5,6]])
185-
B = point((8,6),size=40)+text('B',(8.1,6),horizontal_alignment="left")
186-
C = point ((2,2),size=40)+text('C',(2,2.1),horizontal_alignment="center")
187-
L=line([(8,2),(2,2)],color="black")
188-
M=line([(8,2),(8,6)],color="purple")
189-
A+B+C+L+M
190-
</sageplot>
191-
</image></figure>
185+
<figure xml:id="figure-eq3-midpoint">
186+
<caption>Interactive for finding a midpoint</caption>
187+
<interactive label="EQ3-interactive-midpoint" platform="doenetml" width="100%">
188+
<slate surface="doenetml">
189+
<xi:include parse="text" href="doenet/EQ3-midpoint.xml"/>
190+
</slate>
191+
<description><p>Interactive allowing users to drag points to find the midpoint of a line segment.</p></description>
192+
</interactive>
193+
</figure>
192194
</introduction>
193195
<task>
194196
<statement>

0 commit comments

Comments
 (0)