Skip to content

AnswerFormatHelp removal from the OPL #1279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 5 additions & 5 deletions Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint.pg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DESCRIPTION
#
#
# ENDDESCRIPTION

## DBsubject('Calculus')
Expand All @@ -14,15 +14,15 @@
## Author('Darwyn Cook')
## Institution('Alfred University')

DOCUMENT();
DOCUMENT();

loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"AnswerFormatHelp.pl",

"PGcourse.pl"
);

TEXT(beginproblem()); # standard preamble to each problem.

$showPartialCorrectAnswers = 1;
Expand All @@ -39,7 +39,7 @@ BEGIN_TEXT
If \(f(x) = $f\) then \(f^\prime(x) = \) \{ans_rule\}
$BR
The critical point(s) of \(f\) are \{ans_rule\}
\{ AnswerFormatHelp("logarithms") \}
\{ helpLink("logarithms") \}
END_TEXT
ANS($df->cmp() );
ANS($cp->cmp() );
Expand Down
10 changes: 5 additions & 5 deletions Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint1pet.pg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DESCRIPTION
#
#
# ENDDESCRIPTION

## DBsubject('Calculus')
Expand All @@ -14,15 +14,15 @@
## Author('Darwyn Cook')
## Institution('Alfred University')

DOCUMENT();
DOCUMENT();

loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"AnswerFormatHelp.pl",

"PGcourse.pl"
);

TEXT(beginproblem()); # standard preamble to each problem.

$showPartialCorrectAnswers = 1;
Expand All @@ -38,7 +38,7 @@ $ext = Real("(e^($k*$cp)+$m)/e^$cp");
Context()->texStrings;
BEGIN_TEXT
$BR
Let \(\displaystyle f(x) = $f\).
Let \(\displaystyle f(x) = $f\).
$BR
$BR
(a) \(f^\prime(x) = \) \{ans_rule\}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"parserFunction.pl",
"AnswerFormatHelp.pl",

"PGcourse.pl"
);

Expand Down Expand Up @@ -55,7 +55,7 @@ $y = Formula("(u(t-k*pi)*sin($b*(t-k*pi))+$a*sin($b*t))/$b");

Context()->texStrings;
BEGIN_TEXT
Solve the IVP \[\frac{d^2y}{dt^2}+$a0 y=\delta(t-k\pi), y(0) = 0,y^\prime(0)=$a\].
Solve the IVP \[\frac{d^2y}{dt^2}+$a0 y=\delta(t-k\pi), y(0) = 0,y^\prime(0)=$a\].
$BR
The Laplace transform of the solutions is L{y} = \{$Y->ans_rule(30)\}
$BR
Expand Down
8 changes: 4 additions & 4 deletions Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_chyn.pg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DESCRIPTION
# WeBWorK problem written by Stefan Lukits
# WeBWorK problem written by Stefan Lukits
# <slukits(at)bcit(dot)ca>
# DBsubject(Calculus - single variable)
# DBchapter(Applications of differentiation)
Expand All @@ -16,7 +16,7 @@ loadMacros(
"PGchoicemacros.pl",
"MathObjects.pl",
"PGgraphmacros.pl",
"AnswerFormatHelp.pl",

"unionTables.pl",
"PGcourse.pl",
"RserveClient.pl"
Expand Down Expand Up @@ -57,10 +57,10 @@ add_functions($gr,"x-$c-$k*sin(x) for x in <$bestnummo,$bestnumpo> using color:b
TEXT(beginproblem());
Context()->texStrings;
BEGIN_TEXT
To calculate a planet's space coordinates, we have to solve equations like
To calculate a planet's space coordinates, we have to solve equations like
\[ x=$c+$k\sin{}x \]
$BCENTER
\{ image( insertGraph($gr),
\{ image( insertGraph($gr),
width=>200,height=>200,tex_size=>800 ) \}
$BR
(Click on graph to enlarge)
Expand Down
10 changes: 5 additions & 5 deletions Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_ehqw.pg
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
###########################
# Initialization

DOCUMENT();
DOCUMENT();

loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"PGgraphmacros.pl",
"AnswerFormatHelp.pl",

"unionTables.pl",
"PGcourse.pl"
);
Expand Down Expand Up @@ -75,7 +75,7 @@ $gr->new_color("lightred", 255,127,127);
$gr->new_color("darkred", 255, 55, 55);
$gr->new_color("lightorange", 255,204,127);
$gr->new_color("darkorange", 255, 153, 0);
$gr->new_color("lightgreen", 187, 255, 153);
$gr->new_color("lightgreen", 187, 255, 153);
$gr->new_color("darkgreen", 0, 208, 0);

$x = Formula("sqrt($b)*cos(t)");
Expand All @@ -97,7 +97,7 @@ $w->color('darkorange');
$w->weight('2');

##########################
# Main Text
# Main Text

Context()->texStrings;
BEGIN_TEXT
Expand All @@ -116,7 +116,7 @@ $BR
$BR
\(y_{1}\)=\{ans_rule(20)\}
$BR
$BCENTER \{image(insertGraph($gr),width=>300,height=>300 )\}
$BCENTER \{image(insertGraph($gr),width=>300,height=>300 )\}
$BR
Graph of \( x^{2}+$a y^{2} = $b \) and \( $c y-$d x^{2} = -$e\)$ECENTER
END_TEXT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ loadMacros(
"MathObjects.pl",
"PGML.pl",
"PGcourse.pl",
"AnswerFormatHelp.pl",

);

Context("Matrix");
Expand All @@ -39,23 +39,23 @@ $showPartialCorrectAnswers = 1;
non_zero_random(-10,10),
);
$ans1 = Matrix( [
[ $r[0] ],
[ $r[0] ],
[ $r[1] ],
[ 1 ]
] );
$ans2 = Matrix( [
[ $r[2] ],
[ $r[2] ],
[ $r[3] ],
[ 0 ]
] );
$ans3 = Matrix( [
[ $r[4] ],
[ $r[4] ],
[ $r[5] ],
[ $r[6] ],
[ 1 ]
] );
$ans4 = Matrix( [
[ $r[7] ],
[ $r[7] ],
[ $r[8] ],
[ $r[9] ],
[ 0 ]
Expand All @@ -65,19 +65,19 @@ TEXT(beginproblem());
BEGIN_PGML
Express [`([$r[0]],[$r[1]])`] in homogeneous coordinates.

[_____]*{$ans1} [@ AnswerFormatHelp("matrices") @]*
[_____]*{$ans1} [@ helpLink("matrices") @]*

Express [`\langle [$r[2]],[$r[3]] \rangle`] in homogeneous coordinates.

[_____]*{$ans2} [@ AnswerFormatHelp("matrices") @]*
[_____]*{$ans2} [@ helpLink("matrices") @]*

Express [`([$r[4]],[$r[5]],[$r[6]])`] in homogeneous coordinates.

[_____]*{$ans3} [@ AnswerFormatHelp("matrices") @]*
[_____]*{$ans3} [@ helpLink("matrices") @]*

Express [`\langle [$r[7]],[$r[8]],[$r[9]] \rangle`] in homogeneous coordinates.

[_____]*{$ans4} [@ AnswerFormatHelp("matrices") @]*
[_____]*{$ans4} [@ helpLink("matrices") @]*
END_PGML

BEGIN_PGML_SOLUTION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ loadMacros(
"MathObjects.pl",
"PGML.pl",
"PGcourse.pl",
"AnswerFormatHelp.pl",

"PGessaymacros.pl",
);

Expand All @@ -38,19 +38,19 @@ $showPartialCorrectAnswers = 1;
$L3 = Matrix( [
[ Formula( list_random( 0, 1, "a", "b", "c" ) ),
Formula( list_random( 0, 1, "a", "b", "c" ) ),
Formula( list_random( 0, 1, "a", "b", "c" ) ) ],
Formula( list_random( 0, 1, "a", "b", "c" ) ) ],
[ Formula( list_random( "a", "b", "c" ) ),
Formula( list_random( "a", "b", "c" ) ),
Formula( list_random( 0, 1, "a", "b", "c" ) ) ],
Formula( list_random( 0, 1, "a", "b", "c" ) ) ],
[ 0, 0, 1 ]
] );
$R3 = Matrix( [
[ Formula( list_random( 0, 1, "d", "e" ) ),
Formula( list_random( 0, 1, "d", "e" ) ),
Formula( list_random( 0, 1, "d", "e" ) ) ],
Formula( list_random( 0, 1, "d", "e" ) ) ],
[ Formula( list_random( "d", "e" ) ),
Formula( list_random( 0, 1 ) ),
Formula( list_random( 0, 1 ) ) ],
Formula( list_random( 0, 1 ) ) ],
[ 0, 0, 1 ]
] );
$L4 = Matrix( [
Expand Down Expand Up @@ -79,11 +79,11 @@ TEXT(beginproblem());
BEGIN_PGML
Compute the results of each matrix multiplication shown below.

[`[$L3][$R3]=`][_____]*{$L3*$R3} [@ AnswerFormatHelp("matrices") @]*
[`[$L3][$R3]=`][_____]*{$L3*$R3} [@ helpLink("matrices") @]*

[`[$L4][$R4]=`][_____]*{$L4*$R4} [@ AnswerFormatHelp("matrices") @]*
[`[$L4][$R4]=`][_____]*{$L4*$R4} [@ helpLink("matrices") @]*

[`[$Lv][$Rv]=`][_____]*{$Lv*$Rv} [@ AnswerFormatHelp("matrices") @]*
[`[$Lv][$Rv]=`][_____]*{$Lv*$Rv} [@ helpLink("matrices") @]*
END_PGML

BEGIN_PGML_SOLUTION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ loadMacros(
"MathObjects.pl",
"PGML.pl",
"PGcourse.pl",
"AnswerFormatHelp.pl",

"PGessaymacros.pl",
);

Expand Down Expand Up @@ -68,7 +68,7 @@ Then as a single matrix times the column vector, with the final answer:
[_____]*{$T*$F}
[_____]*{$p1}
=
[_____]*{$T*$F*$p1} [@ AnswerFormatHelp("matrices") @]*
[_____]*{$T*$F*$p1} [@ helpLink("matrices") @]*

-----

Expand All @@ -85,7 +85,7 @@ Then as a single matrix times the column vector, with the final answer:
[_____]*{$S*$R}
[_____]*{$p2}
=
[_____]*{$S*$R*$p2} [@ AnswerFormatHelp("matrices") @]*
[_____]*{$S*$R*$p2} [@ helpLink("matrices") @]*

-----

Expand All @@ -103,7 +103,7 @@ Then as a single matrix times the column vector, with the final answer:
[_____]*{$F*$R*$F}
[_____]*{$p3}
=
[_____]*{$FRF*$p3} [@ AnswerFormatHelp("matrices") @]*
[_____]*{$FRF*$p3} [@ helpLink("matrices") @]*
END_PGML

BEGIN_PGML_SOLUTION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@ loadMacros(
"MathObjects.pl",
"PGML.pl",
"PGcourse.pl",
"AnswerFormatHelp.pl",

);

Context("Matrix");
$showPartialCorrectAnswers = 1;
$M1 = Matrix( [
[ non_zero_random(-5,5), 0, non_zero_random(-5,5), 0 ],
[ non_zero_random(-5,5), 0, non_zero_random(-5,5), 0 ],
[ 0, non_zero_random(-5,5), non_zero_random(-5,5), non_zero_random(-5,5) ],
[ 0, non_zero_random(-5,5), 0, non_zero_random(-5,5) ],
[ 0, non_zero_random(-5,5), 0, non_zero_random(-5,5) ],
[ 0, 0, 0, 1 ]
] );
$CV1 = Matrix( [ [ random(1,9) ], [ random(1,9) ], [ random(1,9) ], [ 1 ] ] );
$M2 = Matrix( [
[ 0,
non_zero_random(-1,10,0.01),
non_zero_random(-1,10,0.01),
non_zero_random(-1,10,0.01) ],
non_zero_random(-1,10,0.01) ],
[ non_zero_random(-1,10,0.01),
0,
non_zero_random(-1,10,0.01),
non_zero_random(-1,10,0.01) ],
non_zero_random(-1,10,0.01) ],
[ non_zero_random(-1,10,0.01),
0,
non_zero_random(-1,10,0.01),
0 ],
0 ],
[ 0, 0, 0, 1 ]
] );
$CV2 = Matrix( [ [ non_zero_random(-1,10,0.01) ],
Expand All @@ -57,9 +57,9 @@ TEXT(beginproblem());
BEGIN_PGML
Perform the following applications of an affine transformation matrix to a column vector.

[`[$M1][$CV1]=`][_____]*{$M1*$CV1} [@ AnswerFormatHelp("matrices") @]*
[`[$M1][$CV1]=`][_____]*{$M1*$CV1} [@ helpLink("matrices") @]*

[`[$M2][$CV2]=`][_____]*{$M2*$CV2} [@ AnswerFormatHelp("matrices") @]*
[`[$M2][$CV2]=`][_____]*{$M2*$CV2} [@ helpLink("matrices") @]*
END_PGML

BEGIN_PGML_SOLUTION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ loadMacros(
"MathObjects.pl",
"PGML.pl",
"PGcourse.pl",
"AnswerFormatHelp.pl",

);

Context("Matrix");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ loadMacros(
"MathObjects.pl",
"PGML.pl",
"PGcourse.pl",
"AnswerFormatHelp.pl",

);

Context("Matrix");
Expand Down
Loading