Skip to content

Commit 9cb2c31

Browse files
committed
Display Fixes and Typos
1 parent c33a855 commit 9cb2c31

10 files changed

+31
-137
lines changed

Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_7_9.pg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ install_weighted_grader();
3636

3737
TEXT(beginproblem());
3838
$showPartialCorrectAnswers = 1;
39-
$refreshCaschedImages = 1;
4039

4140
###########################
4241

Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_139_143.pg

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Context()->noreduce('(-x)-y','(-x)+y');
4141

4242
# first function of the form (x^2+x-2)/(x-1)
4343
$x = non_zero_random(-6, 6, 1);
44+
$nx = -$x;
4445
$x0 = non_zero_random(-6, 6, 1);
4546
$b = $x+$x0;
4647
$num = Formula("x^2 + $b*x+$x*$x0")->reduce;
@@ -142,6 +143,7 @@ BEGIN_PGML
142143

143144
Determine if the function is continuous at the given point. If it is discontinuous, classify the discontinuity as jump, removable, infinite, or other. If it is continuous, choose continuous.
144145

146+
145147
#
146148
END_PGML
147149

@@ -151,7 +153,7 @@ if ($aa == 1) {
151153
BEGIN_PGML
152154

153155
(a)
154-
[`f(x)=[$f_1]`] ; at `x=-[$x]`; the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
156+
[``f(x)=[$f_1]``] ; at `x=[$nx]`; the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
155157

156158

157159
(b)
@@ -194,7 +196,7 @@ BEGIN_PGML
194196

195197

196198
(c)
197-
[`f(x)=[$f_1]`] ; at `x=-[$x]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
199+
[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
198200

199201

200202
(d)
@@ -229,7 +231,7 @@ BEGIN_PGML
229231

230232

231233
(c)
232-
[`f(x)=[$f_1]`] ; at `x=-[$x]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
234+
[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
233235

234236

235237
(d)
@@ -261,7 +263,7 @@ BEGIN_PGML
261263

262264

263265
(b)
264-
[``f(x)=[$f_1]``] ; at `x=-[$x]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
266+
[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]*
265267

266268

267269
(c)

Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_36.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $avea2 = $ave->eval(h=>$a2);
5252

5353
BEGIN_PGML
5454

55-
The position of an object after t seconds is given by `s(t)=t^2-[$a0]t` were `s` is in meters.
55+
The position of an object after t seconds is given by `s(t)=t^2-[$a0]t` were `s` is in feet.
5656

5757
a. The simplified expression for the average velocity from `t=2` to `t=2+h` is [_______________]{ $ave} [@ AnswerFormatHelp("formulas") @]*
5858

Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_126_129.pg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Context()->texStrings;
110110

111111
Scaffold::Begin();
112112

113-
Section::Begin("Part 1 - 1 point");
113+
Section::Begin("Part 1");
114114

115115
BEGIN_PGML
116116

@@ -131,7 +131,7 @@ Section::End();
131131

132132
######################################################
133133

134-
Section::Begin("Part 2 - 1 point");
134+
Section::Begin("Part 2");
135135

136136
BEGIN_PGML
137137

@@ -154,7 +154,7 @@ Section::End();
154154

155155
######################################################
156156

157-
Section::Begin("Part 3 - 1 point");
157+
Section::Begin("Part 3");
158158

159159
BEGIN_PGML
160160

@@ -175,7 +175,7 @@ Section::End();
175175

176176
######################################################
177177

178-
Section::Begin("Part 4 - 1 point");
178+
Section::Begin("Part 4");
179179

180180
BEGIN_PGML
181181

Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_130.pg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ END_PGML
7676

7777
Scaffold::Begin();
7878

79-
Section::Begin("Part 1 - 1 point");
79+
Section::Begin("Part 1");
8080

8181
BEGIN_PGML
8282

@@ -98,7 +98,7 @@ Section::End();
9898

9999
######################################################
100100

101-
Section::Begin("Part 2 - 1 point");
101+
Section::Begin("Part 2");
102102

103103
BEGIN_PGML
104104

@@ -122,7 +122,7 @@ Section::End();
122122

123123
######################################################
124124

125-
Section::Begin("Part 3 - 1 point");
125+
Section::Begin("Part 3");
126126

127127
BEGIN_PGML
128128

Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_482.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ END_PGML
5757
############################
5858
BEGIN_PGML_HINT
5959

60-
This can be done by first simplifying the funciton using a trig identity, or this can be done by using a u-substitution.
60+
This can be done by first simplifying the function using a trig identity, or this can be done by using a u-substitution.
6161

6262

6363

Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_58.pg

Lines changed: 0 additions & 62 deletions
This file was deleted.

Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ $showPartialCorrectAnswers = 1;
3737
##########################
3838
# Setup
3939

40-
Context("Fraction")->variables->are(x=>"Real",y=>"Real");
40+
Context("Numeric")->variables->are(x=>"Real",y=>"Real");
4141
parser::Assignment->Allow;
4242
parser::Assignment->Function("f");
4343

4444
$a = non_zero_random(-10,10,1);
4545
$b = random(1,9,1);
4646
$c = non_zero_random(1,5,2);
4747
$d = non_zero_random(2,4,2);
48+
$m = Compute("$c/$d");
4849

49-
50-
$eqn = Formula("y=$c/$d*x+$b");
50+
$eqn = Formula("y=$m*x+$b");
5151

5252

5353
$video = MODES(
@@ -63,11 +63,13 @@ TeX =>
6363

6464
BEGIN_PGML
6565

66+
[$video]*
67+
68+
6669
Find the equation of the line that contains has a slope of [` \dfrac{[$c]}{[$d]} `] and a `y`-intercept of [`(0,[$b])`]. Write the answer in slope-intercept form.
6770

6871
[__________________]{$eqn} [@ AnswerFormatHelp("equation") @]*
6972

70-
[$video]*
7173

7274
END_PGML
7375

Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg

Lines changed: 9 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $showPartialCorrectAnswers = 1;
3838
##########################
3939
# Setup
4040

41-
Context("Fraction")->variables->are(x=>"Real",y=>"Real");
41+
Context("Numeric")->variables->are(x=>"Real",y=>"Real");
4242
parser::Assignment->Allow;
4343
parser::Assignment->Function("f");
4444

@@ -49,27 +49,8 @@ $d = non_zero_random(-4,4,1);
4949

5050
$slope = - $c;
5151
$intercept = $a*$c+$b;
52+
$eqn = Formula("y=$slope*x+$intercept")->reduce;
5253

53-
Context("ArbitraryString");
54-
55-
if ($intercept > 0) {
56-
$ans1 = "y=" . $slope . "x+" . $intercept;
57-
$ans2 = "y=" . $slope . "*x+" . $intercept;
58-
$ans3 = "y=(" . $slope . ")x+" . $intercept;
59-
$ans4 = "y=(" . $slope . ")*x+" . $intercept;
60-
}
61-
else {
62-
$ans1 = "y=" . $slope . "x-" . (-1*$intercept);
63-
$ans2 = "y=" . $slope . "*x-" . (-1*$intercept);
64-
$ans3 = "y=(" . $slope . ")x-" . (-1*$intercept);
65-
$ans4 = "y=(" . $slope . ")*x-" . (-1*$intercept);
66-
$ans5 = "y=" . $slope . "x+-" . (-1*$intercept);
67-
$ans6 = "y=" . $slope . "*x+-" . (-1*$intercept);
68-
$ans7 = "y=(" . $slope . ")x+(-" . (-1*$intercept) . ")";
69-
$ans8 = "y=(" . $slope . ")*x+(-" . (-1*$intercept) . ")";
70-
$ans9 = "y=(" . $slope . ")x+-" . (-1*$intercept);
71-
$ans10 = "y=(" . $slope . ")*x+-" . (-1*$intercept);
72-
}
7354

7455
$video = MODES(
7556
HTML=>
@@ -86,13 +67,17 @@ TeX =>
8667

8768
BEGIN_PGML
8869

70+
[$video]*
71+
72+
73+
8974
Find an equation of the line perpendicular to [` [$c]*y=x-[$d] `] that passes through the point [`([$a],[$b])`].
9075

9176
Write the answer in slope-intercept form, [`y = mx + b `], with all fractions written in lowest terms.
9277

93-
[____________________]{$ans} [@ AnswerFormatHelp("equation") @]*
78+
[____________________]{$eqn} [@ AnswerFormatHelp("equation") @]*
79+
9480

95-
[$video]*
9681
END_PGML
9782
BEGIN_TEXT
9883
$BR
@@ -109,39 +94,7 @@ END_TEXT
10994
#Solution explanation goes here.
11095
#END_PGML_SOLUTION
11196

112-
ANS( String($ans1) -> cmp( checker => sub{
113-
my ($correct, $student, $ansHash) = @_;
114-
$s = $student;
115-
$s =~ s/ //g; # compress all blank space
116-
if ($intercept > 0) {
117-
if (String($s) == String($ans1) ||
118-
String($s) == String($ans2) ||
119-
String($s) == String($ans3) ||
120-
String($s) == String($ans4)
121-
) {
122-
return(1);
123-
}
124-
else {
125-
return(0);
126-
}
127-
}
128-
else { # intercept is negative
129-
if (String($s) == String($ans1) ||
130-
String($s) == String($ans2) ||
131-
String($s) == String($ans3) ||
132-
String($s) == String($ans4) ||
133-
String($s) == String($ans5) ||
134-
String($s) == String($ans6) ||
135-
String($s) == String($ans7) ||
136-
String($s) == String($ans8)
137-
) {
138-
return(1);
139-
}
140-
else {
141-
return(0);
142-
}
143-
}
144-
} ) );
97+
14598

14699
COMMENT('Uses PGML.');
147100

Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_29.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ $gr2[1]->lb('reset');
114114
$gr2[1]->lb(new Label(4.75,0.25,'x','black','center','middle'));
115115
$gr2[1]->lb(new Label(0.25,4.75,'y','black','center','middle'));
116116

117-
$u=$r1/2;
117+
if($r1==0){$u=1;}else{$u=$r1/2;}
118118
$f2[2] = "(x-$b)/$m for x in <$u,$r2> using color:red and weight:2";
119119
$gr2[2] = init_graph(-5,-5,5,5,'axes'=>[0,0], 'grid'=>[10,10]);
120120
$gr2[2]->lb('reset');

0 commit comments

Comments
 (0)