Skip to content

Commit c33a855

Browse files
committed
display fixes and clarifying directions
1 parent a09c25a commit c33a855

22 files changed

+278
-128
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ install_weighted_grader();
3636

3737
TEXT(beginproblem());
3838
$showPartialCorrectAnswers = 1;
39-
$refreshCaschedImages = 0;
39+
$refreshCaschedImages = 1;
4040

4141
###########################
4242

@@ -191,7 +191,7 @@ add_functions($gr3, "$f_temp for x in <-8,8>" .
191191
add_functions($gr3, "$tanline_temp for x in <-8,8>" .
192192
" using color:black and weight:2");
193193

194-
$b=random(-5, 5,1);
194+
do{$b=random(-5, 5,1);}until($d!=$b);
195195

196196
$f_temp = Formula("sqrt(x)+$b")->reduce();
197197

Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_332.pg

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ $showPartialCorrectAnswers = 1;
3333
# Setup
3434

3535
Context("Numeric");
36-
Context()->variables->add(u => 'Real');
3736

3837
$a=non_zero_random(-10,0,1);
3938
$b=non_zero_random(-10,10,1);
@@ -42,15 +41,14 @@ $d=random(2,10,1);
4241

4342
$f=Formula("e^($a x)/x")->reduce;
4443

45-
46-
$ans=Formula("($a e^($a x) x-e^($a x))/(x^2)");
44+
$ans=Formula("($a e^($a x) x-e^($a x))/(x^2)")->reduce;
4745

4846
###########################
4947
# Main text
50-
## I hope you get [`[$ans1]`], [`[$ans2]`], and [`[$ans3]`].
48+
5149
BEGIN_PGML
5250

53-
Find `f^\prime(x)` for [`f(x)=[$f]`].
51+
Find `f^\prime(x)` for [``f(x)=[$f]``].
5452

5553
`f^\prime(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]*
5654

Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_333.pg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ Context()->variables->add(u => 'Real');
3838
$a=non_zero_random(-10,10,1);
3939

4040

41-
$f=Formula("e^(x^$a ln(x))")->reduce;
41+
$f=Formula("x^$a ln(x)");
4242

4343

4444
$ans=Formula("e^(x^$a ln(x))($a x^($a-1)ln(x)+x^($a-1))")->with(limits=>[1,2]);
4545

4646
###########################
4747
# Main text
48-
## I hope you get [`[$ans1]`], [`[$ans2]`], and [`[$ans3]`].
48+
4949
BEGIN_PGML
5050

51-
Find `f^\prime(x)` for [`f(x)=[$f]`].
51+
Find `f^\prime(x)` for [`` f(x)=e^{([$f])}``].
5252

5353
`f^\prime(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]*
5454

Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_345.pg

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,22 @@ $c=non_zero_random(2,10,1);
4141
$d=random(2,10,1);
4242
$e=random(2,10,1);
4343

44-
45-
#$f=Formula("($c^(x^$d-$e))");
4644
$f=Formula("($c^x)");
4745
$g=Formula("$a^x");
4846

49-
50-
51-
#$ans3=Formula("($a^x*ln($a)*ln($f)/$lnb+$a^x*$d*x^($d-1))(ln($c)/ln($b))")->reduce;
5247
$ans3=Formula("$a^x*ln($a)*x*ln($c)/ln($b)+$a^x*ln($c)/ln($b)");
5348
###########################
5449
# Main text
55-
## I hope you get [`[$ans1]`], [`[$ans2]`], and [`[$ans3]`].
50+
5651
BEGIN_PGML
5752

58-
Find `f^\prime(x)` for [`f(x)=[$g] \cdot \log_{[$b]}([$f])`].
53+
Find `f^\prime(x)` for [``f(x)=[$g] \cdot \log_{[$b]}([$f])``].
5954

6055
`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]*
6156

57+
Note: In WeBWorK, to enter [`\log_b(x)`] you'll need to use the change of base formula of [`` \log_b(x) = \frac{\ln(x)}{\ln(b)}``].
58+
59+
So, if you want to enter [``\log_{[$b]}([$c])``] then you'll need to instead enter [``\frac{\ln([$c])}{\ln([$b])}``]
6260

6361

6462
END_PGML

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## DESCRIPTION
2-
## Calculus One, find the limit of a function at infinity using l'Hopital's Rule.
2+
## Calculus One
33
## ENDDESCRIPTION
44

55

66
## DBsubject(Calculus - single variable)
77
## DBchapter(Integrals)
8-
## DBsection(Antiderivatives (without trigonometric functions))
8+
## DBsection(Antiderivatives (with trigonometric functions))
99
## Date(06/05/2018)
1010
## Institution(Community College of Denver, Colorado Community College System)
1111
## Author(Percy Makita)

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ $showPartialCorrectAnswers = 1;
3434

3535
###########################
3636
# Setup
37-
$k=random(.5,5.5,.5);
37+
3838
$a=non_zero_random(-10,10,2);
39-
$f=Formula("$a*sin($k*x)cos($k*x)")->reduce;
40-
$F=FormulaUpToConstant("{$a }/{2*$k}sin^2($k*x)+C")->reduce;
39+
$f=Formula("$a*sin(1/2 x)cos(1/2 x)")->reduce;
40+
$F=FormulaUpToConstant("{$a }sin^2(1/2 x)+C")->reduce;
4141
$ans=$F;
4242

4343
###########################
@@ -56,7 +56,10 @@ Find the family of antiderivatives of the function
5656
END_PGML
5757
############################
5858
BEGIN_PGML_HINT
59-
.
59+
60+
This can be done by first simplifying the funciton using a trig identity, or this can be done by using a u-substitution.
61+
62+
6063

6164
Rewriting the function using the trig identity [`2\sin(x)\cos(x) = \sin(2x)`] might make this easier.
6265

@@ -66,6 +69,8 @@ Then, the following formulas will be helpful.
6669

6770
[`` \int \cos(ax)dx = \frac{1}{a} \sin(ax)+C``]
6871

72+
73+
6974
END_PGML_HINT
7075
############################
7176
# Solution

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ $showPartialCorrectAnswers = 1;
3434

3535
###########################
3636
# Setup
37-
$k=random(1,10);
38-
$a=random(-5,5);
37+
38+
$a=non_zero_random(-5,5);
3939
$b=random(-5,5);
40-
$f=Formula("$a*sec($k*x)[sec($k*x)-$b*tan($k*x)]")->reduce;
41-
$F=FormulaUpToConstant("{$a }/{$k }[tan($k*x)-$b*sec($k*x)]+C")->reduce;
40+
$f=Formula("$a*sec(x)[sec(x)-$b*tan(x)]")->reduce;
41+
$F=FormulaUpToConstant("{$a }[tan(x)-$b*sec(x)]+C")->reduce;
4242
$ans=$F;
4343

4444
###########################

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ $showPartialCorrectAnswers = 1;
3535
###########################
3636
# Setup
3737
$k=non_zero_random(-5,5,.5);
38-
$p=random(1,5);
3938
$a=non_zero_random(-5,5,.5);
4039
$b=non_zero_random(-5,5,.5);
41-
$f=Formula("$a*e^{$k*x}-$b*sin($p*x)")->reduce;
42-
$F=FormulaUpToConstant("{$a/$k}*e^{$k*x}+{$b/$p}*cos($p*x)+C")->reduce;
40+
$f=Formula("$a*e^{$k*x}-$b*sin(x)")->reduce;
41+
$F=FormulaUpToConstant("{$a/$k}*e^{$k*x}+{$b}*cos(x)+C")->reduce;
4342
$ans=$F;
4443

4544
###########################

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ $showPartialCorrectAnswers = 1;
3434

3535
###########################
3636
# Setup
37+
38+
Context()->noreduce('(-x)-y','(-x)+y');
3739
$k=non_zero_random(-3,3);
3840
$a=random(-10,10);
3941
$b=random(-10,10);
4042
$bk=$b+$k;
4143
$c=random(-10,10);
42-
$f3=Formula("$k^3*cos($k*x)")->reduce;
43-
$ans1=Formula("-sin($k*x)+.5*$a*x^(2)+($b+$k)*x+$c")->reduce;
44-
$ans2=Formula("-sin($k*x)+.5*$b*x^(2)+($c+$k)*x+$a")->reduce;;
44+
$f3=Formula("($k)*cos(x)")->reduce;
45+
$ans1=Formula("-$k*sin(x)+.5*$a*x**2+($b+$k)*x+$c")->reduce;
46+
$ans2=Formula("-$k*sin(x)+.5*$b*x**2+($c+$k)*x+$a")->reduce;;
4547

4648
###########################
4749
# Main text

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ if($n==3){$ans=44;}
4747
else{$ans=48;}
4848

4949

50-
$gr = init_graph(-1,-1,16,16,
50+
$gr = init_graph(-1,-1,14,9,
5151
axes=>[0,0],
52-
grid=>[17,17],
52+
grid=>[15,10],
5353
size=>[600,600]
5454
);
5555

@@ -61,12 +61,22 @@ add_functions($gr, "$f2 for x in <5,7>" .
6161

6262
add_functions($gr, "$f3 for x in <7,12>" .
6363
" using color:blue and weight:3");
64+
$gr->new_color("lightgreen",187,255,153);
65+
66+
$gr->moveTo(0,0);
67+
$gr->lineTo(0,1.1,"black",2);
68+
$gr->moveTo(12,0);
69+
$gr->lineTo(12,1.1,"black",2);
70+
$gr->moveTo(0,0);
71+
$gr->lineTo(12,0,"black",2);
72+
$gr->fillRegion([5,0.5,"lightgreen"]);
73+
6474
###########################
6575
# Main text
6676

6777
BEGIN_PGML
6878

69-
Estimate the areas under the curve by computing the left Riemann sum [`L_{[$n]}`].
79+
Estimate the area below the shown curve on the interval [`[0,12]`] (the shaded region) by computing the left Riemann sum [`L_{[$n]}`].
7080

7181
>>[@ image(insertGraph($gr), width=>400, height=>400), @]*<<
7282

0 commit comments

Comments
 (0)