Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions OpenProblemLibrary/Michigan/Chap4Sec7/Q01.pg
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,19 @@ $gr2->lb( new Label(2,-0.17,"a","black","top","center") );
foreach my $i ( 0, 1, 2, 3 ) {
if ( $whichf[$i] == 1 ) {
$f[$i] = Compute("x-2");
$desc[$i] = "a COL line with positive slope passing through (a,0)";
$desc[$i] = "a COL line with positive slope passing through \((a,0)\)";
} elsif ( $whichf[$i] == 2 ) {
$f[$i] = Compute("2-x");
$desc[$i] = "a COL line with negative slope passing through (a,0)";
$desc[$i] = "a COL line with negative slope passing through \((a,0)\)";
} elsif ( $whichf[$i] == 3 ) {
$f[$i] = Compute("4-2*x");
$desc[$i] = "a COL line with a large negative slope passing through " .
"(a,0)";
$desc[$i] = "a COL line with a large negative slope passing through \((a,0)\)";
} elsif ( $whichf[$i] == 4 ) {
$f[$i] = Compute("(x-2)^2");
$desc[$i] = "a COL parabola opening upward with vertex (a,0)";
$desc[$i] = "a COL parabola opening upward with vertex \((a,0)\)";
} else {
$f[$i] = Compute("-(x-2)^2");
$desc[$i] = "a COL parabola opening downward with vertex (a,0)";
$desc[$i] = "a COL parabola opening downward with vertex \((a,0)\)";
}
$df[$i] = $f[$i]->D();
$d2f[$i] = $df[$i]->D();
Expand Down Expand Up @@ -163,10 +162,10 @@ as the black curve.
$PAR
$BCENTER
\{ begintable(2) \}
\{ row( image( insertGraph( $gr1 ), height=>250, width=>250, tex_size=>250,
extra_html_tags=>'alt="' . $grDesc[0] . '"' ),
image( insertGraph( $gr2 ), height=>250, width=>250, tex_size=>250,
extra_html_tags=>'alt="' . $grDesc[1] . '"' ) ) \}
\{ row( image( insertGraph( $gr1 ), height=>250, width=>250, tex_size=>250,alt=>"Graph of two functions with value 0 when x=a",
long_description=>"$grDesc[0]" ),
image( insertGraph( $gr2 ), height=>250, width=>250, tex_size=>250,alt=>"Graph of two functions with value 0 when x=a",
long_description=>"$grDesc[1]" ) ) \}
\{ row( "\(\displaystyle \lim_{x\to a}\,\frac{f(x)}{g(x)} =\)" .
$lim[0]->menu(),
"\(\displaystyle \lim_{x\to a}\,\frac{f(x)}{g(x)} =\)" .
Expand All @@ -181,8 +180,7 @@ ANS( $lim[0]->cmp() );
ANS( $lim[1]->cmp() );

Context()->texStrings;
SOLUTION(EV3(<<'END_SOLUTION'));
$PAR SOLUTION $PAR
BEGIN_SOLUTION

In either case, we use l'Hopital's rule,
\[ \lim_{x\to a} \frac{f(x)}{g(x)} = \frac{f'(a)}{g'(a)}. \]
Expand Down