Skip to content

Commit 149d4f4

Browse files
siwelwerdjkostiuk
andauthored
Precalculus TR accessibility (#920)
* Merge precalculus-prefigure * TR1 images * TR2 images * TR5 graphs * Finish TR5 * Oops forgot to stage. Actually finish TR5 --------- Co-authored-by: jkostiuk <kostiuk.jordan@gmail.com>
1 parent 6397b08 commit 149d4f4

60 files changed

Lines changed: 1425 additions & 375 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pretext == 2.36.0
1+
pretext[prefigure] == 2.36.0
22
CodeChat-Server == 0.2.25
33
pelican == 4.11.0
44
markdown == 3.7.0

source/precalculus/source/06-TR/01.ptx

Lines changed: 55 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@
3131
</introduction>
3232
<task>
3333
<statement>
34-
<image width="50%">
35-
<sageplot>
36-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
37-
TBIL.plot_angle(pi/2,reference_angle=pi/4,show_axes=False)
38-
</sageplot>
39-
</image>
34+
<image>
35+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle1">
36+
<xi:include href="prefigure/TR1-angle1.xml"/>
37+
</prefigure>
38+
</image>
4039
<p>
4140
<ol marker="A." cols="4">
4241
<li><p><m>45^{\circ}</m> </p></li>
@@ -53,12 +52,11 @@ TBIL.plot_angle(pi/2,reference_angle=pi/4,show_axes=False)
5352
</task>
5453
<task>
5554
<statement>
56-
<image width="50%">
57-
<sageplot>
58-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
59-
TBIL.plot_angle(pi,reference_angle=-pi/6,show_axes=False)
60-
</sageplot>
61-
</image>
55+
<image>
56+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle2">
57+
<xi:include href="prefigure/TR1-angle2.xml"/>
58+
</prefigure>
59+
</image>
6260
<p>
6361
<ol marker="A." cols="4">
6462
<li><p><m>45^{\circ}</m> </p></li>
@@ -75,12 +73,11 @@ TBIL.plot_angle(pi,reference_angle=-pi/6,show_axes=False)
7573
</task>
7674
<task>
7775
<statement>
78-
<image width="50%">
79-
<sageplot>
80-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
81-
TBIL.plot_angle(135*pi/180,reference_angle=pi/2,show_axes=False)
82-
</sageplot>
83-
</image>
76+
<image>
77+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle3">
78+
<xi:include href="prefigure/TR1-angle3.xml"/>
79+
</prefigure>
80+
</image>
8481
<p>
8582
<ol marker="A." cols="4">
8683
<li><p><m>45^{\circ}</m> </p></li>
@@ -101,21 +98,19 @@ TBIL.plot_angle(135*pi/180,reference_angle=pi/2,show_axes=False)
10198
<p>
10299
An angle is in <term>standard position</term> if its vertex is located at the origin and its initial side extends along the positive <m>x</m>-axis.
103100
</p>
104-
<image width="50%">
105-
<sageplot>
106-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
107-
TBIL.plot_angle(5*pi/4)
108-
</sageplot>
109-
</image>
110-
<p>
111-
An angle measured counterclockwise from the initial side has a positive measure, while an angle measured clockwise from the initial side has a negative measure.
112-
</p>
113-
<image width="50%">
114-
<sageplot>
115-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
116-
TBIL.plot_angle(-3*pi/4)
117-
</sageplot>
118-
</image>
101+
<image>
102+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle4">
103+
<xi:include href="prefigure/TR1-angle4.xml"/>
104+
</prefigure>
105+
</image>
106+
<p>
107+
An angle measured counterclockwise from the initial side has a positive measure, while an angle measured clockwise from the initial side has a negative measure.
108+
</p>
109+
<image>
110+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle5">
111+
<xi:include href="prefigure/TR1-angle5.xml"/>
112+
</prefigure>
113+
</image>
119114
</statement>
120115
</definition>
121116

@@ -127,11 +122,10 @@ TBIL.plot_angle(-3*pi/4)
127122
</introduction>
128123
<task>
129124
<statement>
130-
<image width="50%">
131-
<sageplot>
132-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
133-
TBIL.plot_angle(pi/4)
134-
</sageplot>
125+
<image>
126+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle6">
127+
<xi:include href="prefigure/TR1-angle6.xml"/>
128+
</prefigure>
135129
</image>
136130
<p>
137131
<ol marker="A." cols="4">
@@ -149,11 +143,10 @@ TBIL.plot_angle(pi/4)
149143
</task>
150144
<task>
151145
<statement>
152-
<image width="50%">
153-
<sageplot>
154-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
155-
TBIL.plot_angle(-pi)
156-
</sageplot>
146+
<image>
147+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle7">
148+
<xi:include href="prefigure/TR1-angle7.xml"/>
149+
</prefigure>
157150
</image>
158151
<p>
159152
<ol marker="A." cols="4">
@@ -172,11 +165,10 @@ TBIL.plot_angle(-pi)
172165
</task>
173166
<task>
174167
<statement>
175-
<image width="50%">
176-
<sageplot>
177-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
178-
TBIL.plot_angle(-5*pi/6)
179-
</sageplot>
168+
<image>
169+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle8">
170+
<xi:include href="prefigure/TR1-angle8.xml"/>
171+
</prefigure>
180172
</image>
181173
<p>
182174
<ol marker="A." cols="4">
@@ -197,12 +189,11 @@ TBIL.plot_angle(-5*pi/6)
197189
<p> Draw an angle of measure <m>-225^{\circ} </m> in standard position.
198190
</p></statement>
199191
<answer>
200-
<image width="50%">
201-
<sageplot>
202-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
203-
TBIL.plot_angle(-225*pi/180)
204-
</sageplot>
205-
</image>
192+
<image>
193+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-angle9">
194+
<xi:include href="prefigure/TR1-angle9.xml"/>
195+
</prefigure>
196+
</image>
206197
</answer>
207198
</task>
208199
</activity>
@@ -223,13 +214,11 @@ TBIL.plot_angle(-225*pi/180)
223214
A <term>central angle</term> is an angle whose vertex is at the center of a circle.
224215
</p>
225216

226-
<image width="50%">
227-
<sageplot>
228-
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
229-
p=TBIL.plot_angle(2*pi/3,show_unit_circle=True,show_angle_value=False,degree_labels=False)
230-
p
231-
</sageplot>
232-
</image>
217+
<image>
218+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-central-angle">
219+
<xi:include href="prefigure/TR1-central-angle.xml"/>
220+
</prefigure>
221+
</image>
233222
</statement>
234223
</definition>
235224

@@ -241,17 +230,12 @@ p
241230
One <term>radian</term> is the measure of a central angle of a circle that intersects an arc the same length as the radius.
242231
</p>
243232

233+
<image>
234+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR1-radian">
235+
<xi:include href="prefigure/TR1-radian.xml"/>
236+
</prefigure>
237+
</image>
244238

245-
<image width="50%">
246-
<sageplot>
247-
<xi:include parse="text" href="../../../common/sagemath/library.sage"/>
248-
p=TBIL.plot_angle(1,show_unit_circle=True,show_angle_value=True,degree_labels=False)
249-
p+=arc((0,0),1,sector=(0,1),color="blue",thickness=2)
250-
p+=text("$r$",(0.5,0.07),fontsize=20)
251-
p+=text("$r$",(0.87,0.6),fontsize=20)
252-
p
253-
</sageplot>
254-
</image>
255239
</statement>
256240
</definition>
257241

source/precalculus/source/06-TR/02.ptx

Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
<activity>
1616
<statement>
1717
<p> Consider the angle given below:</p>
18-
<image width="50%">
19-
<sageplot>
20-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
21-
TBIL.plot_angle(-7*pi/4,show_axes=True)
22-
</sageplot>
18+
<image>
19+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR2-angle1">
20+
<xi:include href="prefigure/TR2-angle1.xml"/>
21+
</prefigure>
2322
</image>
2423
<p>Which of the following angles describe the plotted angle?</p>
2524
<ol marker="A." cols="4">
@@ -47,11 +46,10 @@ TBIL.plot_angle(-7*pi/4,show_axes=True)
4746
<activity>
4847
<introduction>
4948
<p> Consider the angle given below:</p>
50-
<image width="50%">
51-
<sageplot>
52-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
53-
TBIL.plot_angle(pi/3,show_axes=True,show_angle_value=True,degree_labels=True)
54-
</sageplot>
49+
<image>
50+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR2-angle2">
51+
<xi:include href="prefigure/TR2-angle2.xml"/>
52+
</prefigure>
5553
</image>
5654
</introduction>
5755
<task>
@@ -124,14 +122,10 @@ TBIL.plot_angle(pi/3,show_axes=True,show_angle_value=True,degree_labels=True)
124122
<activity>
125123
<introduction>
126124
<p>Consider the portion of a circle of radius <m>1</m> graphed below.</p>
127-
<image width="50%">
128-
<sageplot>
129-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
130-
p=TBIL.plot_angle(pi/2,show_axes=True,show_angle_value=True,degree_labels=True,show_unit_circle=True)
131-
p+=arc((0,0),1,sector=(0,pi/2),color="blue",thickness=3)
132-
p+=text("$1$", (0.5,0.05),color="black")
133-
p
134-
</sageplot>
125+
<image>
126+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR2-arc-length1">
127+
<xi:include href="prefigure/TR2-arc-length1.xml"/>
128+
</prefigure>
135129
</image>
136130
</introduction>
137131
<task>
@@ -175,14 +169,10 @@ p
175169
<activity>
176170
<introduction>
177171
<p>Consider the portion of a circle of radius <m>3</m> graphed below.</p>
178-
<image width="50%">
179-
<sageplot>
180-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
181-
p=TBIL.plot_angle(pi/3,show_axes=True,show_angle_value=True,degree_labels=True,show_unit_circle=True)
182-
p+=arc((0,0),1,sector=(0,pi/3),color="blue",thickness=3)
183-
p+=text("$3$", (0.5,0.05),color="black")
184-
p
185-
</sageplot>
172+
<image>
173+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR2-arc-length2">
174+
<xi:include href="prefigure/TR2-arc-length2.xml"/>
175+
</prefigure>
186176
</image>
187177
</introduction>
188178
<task>
@@ -262,14 +252,10 @@ p
262252
<activity>
263253
<introduction>
264254
<p>Consider the portion of a circle of radius <m>1</m> graphed below.</p>
265-
<image width="50%">
266-
<sageplot>
267-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
268-
p=TBIL.plot_angle(pi/2,show_axes=True,show_angle_value=True,degree_labels=True,show_unit_circle=True)
269-
p+=arc((0,0),1,sector=(0,pi/2),color="blue",thickness=3)
270-
p+=text("$1$", (0.5,0.05),color="black")
271-
p
272-
</sageplot>
255+
<image>
256+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR2-arc-length12">
257+
<xi:include href="prefigure/TR2-arc-length1.xml"/>
258+
</prefigure>
273259
</image>
274260
</introduction>
275261
<task>
@@ -313,14 +299,10 @@ p
313299
<activity>
314300
<introduction>
315301
<p>Consider the portion of a circle of radius <m>3</m> graphed below.</p>
316-
<image width="50%">
317-
<sageplot>
318-
<xi:include href="../../../common/sagemath/library.sage" parse="text" />
319-
p=TBIL.plot_angle(pi/3,show_axes=True,show_angle_value=True,degree_labels=True,show_unit_circle=True)
320-
p+=arc((0,0),1,sector=(0,pi/3),color="blue",thickness=3)
321-
p+=text("$3$", (0.5,0.05),color="black")
322-
p
323-
</sageplot>
302+
<image>
303+
<prefigure xmlns="https://prefigure.org" label="prefigure-graph-TR2-arc-length22">
304+
<xi:include href="prefigure/TR2-arc-length2.xml"/>
305+
</prefigure>
324306
</image>
325307
</introduction>
326308
<task>

0 commit comments

Comments
 (0)