Skip to content

Commit e9a6a93

Browse files
committed
Rewrite using PGML
1 parent 172bbb2 commit e9a6a93

File tree

1 file changed

+7
-10
lines changed
  • OpenProblemLibrary/Rochester/setAlgebra28ExpFunctions

1 file changed

+7
-10
lines changed

OpenProblemLibrary/Rochester/setAlgebra28ExpFunctions/ur_le_1_5.pg

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem.
2020

2121
loadMacros(
2222
"PGstandard.pl",
23+
"PGML.pl",
2324
"PGchoicemacros.pl",
2425
"PGgraphmacros.pl",
2526
"PGnumericalmacros.pl",
@@ -47,19 +48,15 @@ add_functions($graph1, $fn, $pt0, $pt1);
4748
$label_0 = new Label ( 0.5,$a,"(0,$a)",'black','left','middle'); $graph1->lb($label_0);
4849
$label_1 = new Label ( 1.5,$y,"(1,$y)",'black','left','middle'); $graph1->lb($label_1);
4950

50-
BEGIN_TEXT
51+
BEGIN_PGML
52+
Find the exponential function [`f(x)=a\cdot 2^{b x}`] whose graph is shown below
5153

52-
Find the exponential function \(f(x)=a\cdot 2^{b x}\) whose graph is shown below
53-
$BR
54-
\{ image(insertGraph($graph1), width=>200, height=>200) \}
55-
$BR
56-
\(a=\) \{ans_rule(20)\} $BR
57-
\(b=\) \{ans_rule(20)\}
54+
[!Graph of exponential function passing through points (0,[$a]) and (1,[$y])!]{$graph1}{width=>200, height=>200}
5855

59-
END_TEXT
56+
* [`a=`][____________________]{$a}
57+
* [`b=`][____________________]{$b}
6058

61-
ANS(num_cmp($a));
62-
ANS(num_cmp($b));
59+
END_PGML
6360

6461
ENDDOCUMENT(); # This should be the last executable line in the problem.
6562

0 commit comments

Comments
 (0)